GUACAMOLE-66: Merge removal of unnecessary dependency.

This commit is contained in:
Michael Jumper committed 2016-07-27 21:05:24 -07:00
commit 0ec42d2b1d
2 files changed
+2 -9

No files matched your search

-7
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>
@@ -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);
}
}