@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
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.