GUACAMOLE-66: Remove Apache Commons Codec dependency.

This commit is contained in:
James Muehlner
2016-07-27 20:58:47 -07:00
parent 139cca986d
commit 01c51f9998
2 changed files with 2 additions and 9 deletions

View File

@@ -324,13 +324,6 @@
<version>1.0</version>
</dependency>
<!-- Apache commons codec library -->
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.4</version>
</dependency>
<!-- Jackson for JSON support -->
<dependency>
<groupId>com.sun.jersey</groupId>

View File

@@ -20,7 +20,7 @@
package org.apache.guacamole.rest.auth;
import java.security.SecureRandom;
import org.apache.commons.codec.binary.Hex;
import javax.xml.bind.DatatypeConverter;
/**
* An implementation of the AuthTokenGenerator based around SecureRandom.
@@ -39,7 +39,7 @@ public class SecureRandomAuthTokenGenerator implements AuthTokenGenerator {
byte[] bytes = new byte[32];
secureRandom.nextBytes(bytes);
return Hex.encodeHexString(bytes);
return DatatypeConverter.printHexBinary(bytes);
}
}