@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public class DelegationKey extends Object implements Writable
| Constructor and Description |
|---|
DelegationKey()
Default constructore required for Writable
|
DelegationKey(int keyId,
long expiryDate,
byte[] encodedKey) |
DelegationKey(int keyId,
long expiryDate,
SecretKey key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object right) |
byte[] |
getEncodedKey() |
long |
getExpiryDate() |
SecretKey |
getKey() |
int |
getKeyId() |
int |
hashCode() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
setExpiryDate(long expiryDate) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public DelegationKey()
public DelegationKey(int keyId,
long expiryDate,
SecretKey key)
public DelegationKey(int keyId,
long expiryDate,
byte[] encodedKey)
public int getKeyId()
public long getExpiryDate()
public SecretKey getKey()
public byte[] getEncodedKey()
public void setExpiryDate(long expiryDate)
public void write(DataOutput out) throws IOException
Writableout.write in interface Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.