Class DelegationTokenImpl
- java.lang.Object
-
- org.apache.accumulo.core.client.security.tokens.PasswordToken
-
- org.apache.accumulo.core.clientImpl.DelegationTokenImpl
-
- All Implemented Interfaces:
Cloneable,Destroyable,AuthenticationToken,DelegationToken,org.apache.hadoop.io.Writable
public class DelegationTokenImpl extends PasswordToken implements DelegationToken
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.security.tokens.AuthenticationToken
AuthenticationToken.AuthenticationTokenSerializer, AuthenticationToken.Properties, AuthenticationToken.TokenProperty
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description DelegationTokenImpl()DelegationTokenImpl(byte[] delegationTokenPassword, AuthenticationTokenIdentifier identifier)DelegationTokenImpl(String instanceID, org.apache.hadoop.security.UserGroupInformation user, AuthenticationTokenIdentifier identifier)DelegationTokenImpl(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, AuthenticationTokenIdentifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegationTokenImplclone()booleanequals(Object obj)AuthenticationTokenIdentifiergetIdentifier()The identifier for this token, may be null.Set<AuthenticationToken.TokenProperty>getProperties()org.apache.hadoop.io.TextgetServiceName()The service name used to identify theTokeninthashCode()voidinit(AuthenticationToken.Properties properties)voidreadFields(DataInput in)voidwrite(DataOutput out)-
Methods inherited from class org.apache.accumulo.core.client.security.tokens.PasswordToken
destroy, getPassword, isDestroyed, setPassword, setPassword
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DelegationTokenImpl
public DelegationTokenImpl()
-
DelegationTokenImpl
public DelegationTokenImpl(byte[] delegationTokenPassword, AuthenticationTokenIdentifier identifier)
-
DelegationTokenImpl
public DelegationTokenImpl(String instanceID, org.apache.hadoop.security.UserGroupInformation user, AuthenticationTokenIdentifier identifier)
-
DelegationTokenImpl
public DelegationTokenImpl(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, AuthenticationTokenIdentifier identifier)
-
-
Method Detail
-
getIdentifier
public AuthenticationTokenIdentifier getIdentifier()
The identifier for this token, may be null.
-
getServiceName
public org.apache.hadoop.io.Text getServiceName()
The service name used to identify theToken
-
init
public void init(AuthenticationToken.Properties properties)
- Specified by:
initin interfaceAuthenticationToken- Overrides:
initin classPasswordToken
-
getProperties
public Set<AuthenticationToken.TokenProperty> getProperties()
- Specified by:
getPropertiesin interfaceAuthenticationToken- Overrides:
getPropertiesin classPasswordToken
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein classPasswordToken- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classPasswordToken- Throws:
IOException
-
clone
public DelegationTokenImpl clone()
- Specified by:
clonein interfaceAuthenticationToken- Overrides:
clonein classPasswordToken
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPasswordToken
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classPasswordToken
-
-