HBASE-10527 Token authentication fails with IBM JDK

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1570437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Helmling 2014-02-21 03:19:46 +00:00
parent 3f485568a9
commit e05863f8e5
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ public class AuthenticationTokenSecretManager
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 AuthenticationTokenSecretManager
identifier.getKeyId()+")");
}
// regenerate the password
return createPassword(WritableUtils.toByteArray(identifier),
return createPassword(identifier.getBytes(),
masterKey.getKey());
}