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 String
SERVICE_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 DelegationTokenImpl
clone()
boolean
equals(Object obj)
AuthenticationTokenIdentifier
getIdentifier()
The identifier for this token, may be null.Set<AuthenticationToken.TokenProperty>
getProperties()
org.apache.hadoop.io.Text
getServiceName()
The service name used to identify theToken
int
hashCode()
void
init(AuthenticationToken.Properties properties)
void
readFields(DataInput in)
void
write(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:
init
in interfaceAuthenticationToken
- Overrides:
init
in classPasswordToken
-
getProperties
public Set<AuthenticationToken.TokenProperty> getProperties()
- Specified by:
getProperties
in interfaceAuthenticationToken
- Overrides:
getProperties
in classPasswordToken
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
write
in classPasswordToken
- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
readFields
in classPasswordToken
- Throws:
IOException
-
clone
public DelegationTokenImpl clone()
- Specified by:
clone
in interfaceAuthenticationToken
- Overrides:
clone
in classPasswordToken
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPasswordToken
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPasswordToken
-
-