hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1570453 - /hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java
Date Fri, 21 Feb 2014 05:23:34 GMT
Author: garyh
Date: Fri Feb 21 05:23:33 2014
New Revision: 1570453

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

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

Modified: hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java?rev=1570453&r1=1570452&r2=1570453&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java
(original)
+++ hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/AuthenticationTokenSecretManager.java
Fri Feb 21 05:23:33 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());
   }
 



Mime
View raw message