Search in sources :

Example 1 with TAuthenticationKey

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());
}
Also used : TAuthenticationKey(org.apache.accumulo.core.securityImpl.thrift.TAuthenticationKey) ThriftMessageUtil(org.apache.accumulo.core.util.ThriftMessageUtil)

Aggregations

TAuthenticationKey (org.apache.accumulo.core.securityImpl.thrift.TAuthenticationKey)1 ThriftMessageUtil (org.apache.accumulo.core.util.ThriftMessageUtil)1