diff options
author | Simon Rettberg | 2022-11-03 15:31:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-11-03 15:31:16 +0100 |
commit | 591d93d46bf3da2276a5fcc5e21022a0667737dc (patch) | |
tree | 223f6b0c5f6303a2497cd1741426ba68d804d9ef /dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java | |
parent | [server] Honor vmSizeLimit and reject uploads that exceed it (diff) | |
download | tutor-module-591d93d46bf3da2276a5fcc5e21022a0667737dc.tar.gz tutor-module-591d93d46bf3da2276a5fcc5e21022a0667737dc.tar.xz tutor-module-591d93d46bf3da2276a5fcc5e21022a0667737dc.zip |
[client] Fix build; don't depend on implicit apache-commons dep
After bumping other libs, apache-commons is not available anymore,
breaking the build process. Change affected code to use other libs
instead.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java b/dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java index 93105e91..bed848f2 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/authentication/EcpAuthenticator.java @@ -5,10 +5,10 @@ import java.net.MalformedURLException; import java.net.URISyntaxException; import java.nio.ByteBuffer; import java.util.ArrayList; +import java.util.Base64; import java.util.List; import java.util.Map.Entry; -import org.apache.commons.codec.binary.Base64; import org.apache.hc.client5.http.ClientProtocolException; import org.apache.hc.core5.http.ParseException; import org.apache.logging.log4j.LogManager; @@ -75,7 +75,7 @@ public class EcpAuthenticator implements Authenticator { List<Satellite> sats = new ArrayList<>(); // TODO: Handle cert fingerprint if (response.satellites2 != null) { - Base64 base64 = new Base64(); + Base64.Decoder base64 = Base64.getDecoder(); for (Entry<String, JSatellite> it : response.satellites2.entrySet()) { JSatellite jsat = it.getValue(); ByteBuffer hash = jsat.certHash == null ? null |