org.apache.hadoop.security.token.delegation
Class DelegationKey
java.lang.Object
   org.apache.hadoop.security.token.delegation.DelegationKey
org.apache.hadoop.security.token.delegation.DelegationKey
- All Implemented Interfaces: 
- Writable
- public class DelegationKey 
- extends Object- implements Writable
Key used for generating and verifying delegation tokens
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DelegationKey
public DelegationKey()
DelegationKey
public DelegationKey(int keyId,
                     long expiryDate,
                     SecretKey key)
getKeyId
public int getKeyId()
- 
 
- 
 
getExpiryDate
public long getExpiryDate()
- 
 
- 
 
getKey
public SecretKey getKey()
- 
 
- 
 
setExpiryDate
public void setExpiryDate(long expiryDate)
- 
 
- 
 
write
public void write(DataOutput out)
           throws IOException
- Description copied from interface: Writable
- Serialize the fields of this object to out.
 
- 
- Specified by:
- writein interface- Writable
 
- 
- Parameters:
- out-- DataOuputto serialize this object into.
- Throws:
- IOException
 
readFields
public void readFields(DataInput in)
                throws IOException
- Description copied from interface: Writable
- Deserialize the fields of this object from in.For efficiency, implementations should attempt to re-use storage in the 
 existing object where possible. 
 
- 
- Specified by:
- readFieldsin interface- Writable
 
- 
- Parameters:
- in-- DataInputto deseriablize this object from.
- Throws:
- IOException
 
Copyright © 2009 The Apache Software Foundation