| Constructor | Description |
|---|---|
DelegationKey() |
Default constructore required for Writable
|
DelegationKey(int keyId,
long expiryDate,
byte[] encodedKey) |
|
DelegationKey(int keyId,
long expiryDate,
javax.crypto.SecretKey key) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object right) |
|
byte[] |
getEncodedKey() |
|
long |
getExpiryDate() |
|
javax.crypto.SecretKey |
getKey() |
|
int |
getKeyId() |
|
int |
hashCode() |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
void |
setExpiryDate(long expiryDate) |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
public DelegationKey()
public DelegationKey(int keyId,
long expiryDate,
javax.crypto.SecretKey key)
public DelegationKey(int keyId,
long expiryDate,
byte[] encodedKey)
public int getKeyId()
public long getExpiryDate()
public javax.crypto.SecretKey getKey()
public byte[] getEncodedKey()
public void setExpiryDate(long expiryDate)
public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.public void readFields(java.io.DataInput in)
throws java.io.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.java.io.IOException - any other problem for readFields.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object right)
equals in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.