public class AuthenticationKey extends Object implements org.apache.hadoop.io.Writable
AuthenticationTokenSecretManager
.Constructor and Description |
---|
AuthenticationKey() |
AuthenticationKey(int keyId,
long creationDate,
long expirationDate,
SecretKey key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getCreationDate() |
long |
getExpirationDate() |
int |
getKeyId() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
setCreationDate(long creationDate) |
void |
setExpirationDate(long expirationDate) |
String |
toString() |
void |
write(DataOutput out) |
public AuthenticationKey()
public AuthenticationKey(int keyId, long creationDate, long expirationDate, SecretKey key)
public int getKeyId()
public long getCreationDate()
public void setCreationDate(long creationDate)
public long getExpirationDate()
public void setExpirationDate(long expirationDate)
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 © 2011–2018 The Apache Software Foundation. All rights reserved.