You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ga...@apache.org on 2014/02/21 04:19:46 UTC

svn commit: r1570437 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java

Author: garyh
Date: Fri Feb 21 03:19:46 2014
New Revision: 1570437

URL: http://svn.apache.org/r1570437
Log:
HBASE-10527 Token authentication fails with IBM JDK

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java?rev=1570437&r1=1570436&r2=1570437&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java Fri Feb 21 03:19:46 2014
@@ -130,7 +130,7 @@ public class AuthenticationTokenSecretMa
     identifier.setIssueDate(now);
     identifier.setExpirationDate(now + tokenMaxLifetime);
     identifier.setSequenceNumber(tokenSeq.getAndIncrement());
-    return createPassword(WritableUtils.toByteArray(identifier),
+    return createPassword(identifier.getBytes(),
         secretKey.getKey());
   }
 
@@ -147,7 +147,7 @@ public class AuthenticationTokenSecretMa
           identifier.getKeyId()+")");
     }
     // regenerate the password
-    return createPassword(WritableUtils.toByteArray(identifier),
+    return createPassword(identifier.getBytes(),
         masterKey.getKey());
   }