Repository: incubator-guacamole-client Updated Branches: refs/heads/master 139cca986 -> 0ec42d2b1
GUACAMOLE-66: Remove Apache Commons Codec dependency. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/01c51f99 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/01c51f99 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/01c51f99 Branch: refs/heads/master Commit: 01c51f99986475879803b9209294c1d928e2d916 Parents: 139cca9 Author: James Muehlner <[email protected]> Authored: Wed Jul 27 20:58:47 2016 -0700 Committer: James Muehlner <[email protected]> Committed: Wed Jul 27 20:58:47 2016 -0700 ---------------------------------------------------------------------- guacamole/pom.xml | 7 ------- .../guacamole/rest/auth/SecureRandomAuthTokenGenerator.java | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/01c51f99/guacamole/pom.xml ---------------------------------------------------------------------- diff --git a/guacamole/pom.xml b/guacamole/pom.xml index c0b6b3b..2d78ddf 100644 --- a/guacamole/pom.xml +++ b/guacamole/pom.xml @@ -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> http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/01c51f99/guacamole/src/main/java/org/apache/guacamole/rest/auth/SecureRandomAuthTokenGenerator.java ---------------------------------------------------------------------- diff --git a/guacamole/src/main/java/org/apache/guacamole/rest/auth/SecureRandomAuthTokenGenerator.java b/guacamole/src/main/java/org/apache/guacamole/rest/auth/SecureRandomAuthTokenGenerator.java index 9e6435c..dc94b44 100644 --- a/guacamole/src/main/java/org/apache/guacamole/rest/auth/SecureRandomAuthTokenGenerator.java +++ b/guacamole/src/main/java/org/apache/guacamole/rest/auth/SecureRandomAuthTokenGenerator.java @@ -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); } }
