use of org.apache.accumulo.core.securityImpl.thrift.TAuthenticationKey in project accumulo by apache.
the class AuthenticationKey method readFields.
@Override
public void readFields(DataInput in) throws IOException {
int length = WritableUtils.readVInt(in);
if (length == 0) {
return;
}
ThriftMessageUtil util = new ThriftMessageUtil();
byte[] bytes = new byte[length];
in.readFully(bytes);
authKey = util.deserialize(bytes, new TAuthenticationKey());
secret = AuthenticationTokenSecretManager.createSecretKey(authKey.getSecret());
}
Aggregations