public class DelegationTokenImpl extends PasswordToken implements DelegationToken
AuthenticationToken.AuthenticationTokenSerializer, AuthenticationToken.Properties, AuthenticationToken.TokenProperty
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Constructor and Description |
---|
DelegationTokenImpl() |
DelegationTokenImpl(byte[] delegationTokenPassword,
AuthenticationTokenIdentifier identifier) |
DelegationTokenImpl(Instance instance,
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) |
Modifier and Type | Method and 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 the
Token |
int |
hashCode() |
void |
init(AuthenticationToken.Properties properties) |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
destroy, getPassword, isDestroyed, setPassword, setPassword
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed
public static final String SERVICE_NAME
public DelegationTokenImpl()
public DelegationTokenImpl(byte[] delegationTokenPassword, AuthenticationTokenIdentifier identifier)
public DelegationTokenImpl(Instance instance, org.apache.hadoop.security.UserGroupInformation user, AuthenticationTokenIdentifier identifier)
public DelegationTokenImpl(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, AuthenticationTokenIdentifier identifier)
public AuthenticationTokenIdentifier getIdentifier()
public org.apache.hadoop.io.Text getServiceName()
Token
public void init(AuthenticationToken.Properties properties)
init
in interface AuthenticationToken
init
in class PasswordToken
public Set<AuthenticationToken.TokenProperty> getProperties()
getProperties
in interface AuthenticationToken
getProperties
in class PasswordToken
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class PasswordToken
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class PasswordToken
IOException
public DelegationTokenImpl clone()
clone
in interface AuthenticationToken
clone
in class PasswordToken
public int hashCode()
hashCode
in class PasswordToken
public boolean equals(Object obj)
equals
in class PasswordToken
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.