org.apache.hadoop.mapreduce.security.token.delegation
Class DelegationTokenIdentifier
java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier
- All Implemented Interfaces:
- Writable
public class DelegationTokenIdentifier
- extends AbstractDelegationTokenIdentifier
A delegation token identifier that is specific to MapReduce.
Methods inherited from class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier |
equals, getIssueDate, getMasterKeyId, getMaxDate, getRenewer, getSequenceNumber, getUser, hashCode, readFields, setIssueDate, setMasterKeyId, setMaxDate, setSequenceNumber, toString, write |
MAPREDUCE_DELEGATION_KIND
public static final Text MAPREDUCE_DELEGATION_KIND
DelegationTokenIdentifier
public DelegationTokenIdentifier()
- Create an empty delegation token identifier for reading into.
DelegationTokenIdentifier
public DelegationTokenIdentifier(Text owner,
Text renewer,
Text realUser)
- Create a new delegation token identifier
- Parameters:
owner
- the effective username of the token ownerrenewer
- the username of the renewerrealUser
- the real username of the token owner
getKind
public Text getKind()
- Description copied from class:
TokenIdentifier
- Get the token kind
- Specified by:
getKind
in class AbstractDelegationTokenIdentifier
- Returns:
- the kind of the token
Copyright © 2009 The Apache Software Foundation