Class AbstractDelegationTokenSecretManager.DelegationTokenInformation
java.lang.Object
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation
- All Implemented Interfaces:
Writable
- Enclosing class:
- AbstractDelegationTokenSecretManager<TokenIdent extends AbstractDelegationTokenIdentifier>
@Evolving
public static class AbstractDelegationTokenSecretManager.DelegationTokenInformation
extends Object
implements Writable
Class to encapsulate a token's renew date and password.
-
Constructor Summary
ConstructorsConstructorDescriptionDelegationTokenInformation(long renewDate, byte[] password) DelegationTokenInformation(long renewDate, byte[] password, String trackingId) -
Method Summary
Modifier and TypeMethodDescriptionlongvoidreadFields(DataInput in) Deserialize the fields of this object fromin.voidwrite(DataOutput out) Serialize the fields of this object toout.
-
Constructor Details
-
DelegationTokenInformation
public DelegationTokenInformation() -
DelegationTokenInformation
public DelegationTokenInformation(long renewDate, byte[] password) -
DelegationTokenInformation
-
-
Method Details
-
getRenewDate
public long getRenewDate()- Returns:
- returns renew date.
-
getTrackingId
- Returns:
- returns tracking id.
-
write
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-
readFields
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-