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:
parent
3f485568a9
commit
e05863f8e5
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue