@InterfaceAudience.Private public class AuthenticationKey extends Object implements org.apache.hadoop.io.Writable
AuthenticationTokenSecretManager
.Modifier and Type | Field and Description |
---|---|
private long |
expirationDate |
private int |
id |
private SecretKey |
secret |
Constructor and Description |
---|
AuthenticationKey() |
AuthenticationKey(int keyId,
long expirationDate,
SecretKey key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getExpiration() |
(package private) SecretKey |
getKey() |
int |
getKeyId() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setExpiration(long timestamp) |
String |
toString() |
void |
write(DataOutput out) |
private int id
private long expirationDate
private SecretKey secret
public AuthenticationKey()
public AuthenticationKey(int keyId, long expirationDate, SecretKey key)
public int getKeyId()
public long getExpiration()
public void setExpiration(long timestamp)
SecretKey getKey()
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 The Apache Software Foundation. All rights reserved.