@InterfaceAudience.Private public class AuthenticationKey extends Object implements org.apache.hadoop.io.Writable
AuthenticationTokenSecretManager
.Constructor and Description |
---|
AuthenticationKey() |
AuthenticationKey(int keyId,
long expirationDate,
SecretKey key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getExpiration() |
int |
getKeyId() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setExpiration(long timestamp) |
String |
toString() |
void |
write(DataOutput out) |
public AuthenticationKey()
public AuthenticationKey(int keyId, long expirationDate, SecretKey key)
public int getKeyId()
public long getExpiration()
public void setExpiration(long timestamp)
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2007–2019 Cloudera. All rights reserved.