org.apache.hadoop.yarn.security.client
Class RMDelegationTokenIdentifier

java.lang.Object
  extended by org.apache.hadoop.security.token.TokenIdentifier
      extended by org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
          extended by org.apache.hadoop.yarn.security.client.YARNDelegationTokenIdentifier
              extended by org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier
All Implemented Interfaces:
Writable

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class RMDelegationTokenIdentifier
extends org.apache.hadoop.yarn.security.client.YARNDelegationTokenIdentifier

Delegation Token Identifier that identifies the delegation tokens from the Resource Manager.


Field Summary
static Text KIND_NAME
           
 
Constructor Summary
RMDelegationTokenIdentifier()
           
RMDelegationTokenIdentifier(Text owner, Text renewer, Text realUser)
          Create a new delegation token identifier
 
Method Summary
 Text getKind()
          Get the token kind
 
Methods inherited from class org.apache.hadoop.yarn.security.client.YARNDelegationTokenIdentifier
getProto, readFields, write
 
Methods inherited from class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
equals, getIssueDate, getMasterKeyId, getMaxDate, getOwner, getRealUser, getRenewer, getSequenceNumber, getUser, hashCode, isEqual, setIssueDate, setMasterKeyId, setMaxDate, setOwner, setRealUser, setRenewer, setSequenceNumber, toString
 
Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes, getTrackingId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KIND_NAME

public static final Text KIND_NAME
Constructor Detail

RMDelegationTokenIdentifier

public RMDelegationTokenIdentifier()

RMDelegationTokenIdentifier

public RMDelegationTokenIdentifier(Text owner,
                                   Text renewer,
                                   Text realUser)
Create a new delegation token identifier

Parameters:
owner - the effective username of the token owner
renewer - the username of the renewer
realUser - the real username of the token owner
Method Detail

getKind

public Text getKind()
Description copied from class: org.apache.hadoop.security.token.TokenIdentifier
Get the token kind

Specified by:
getKind in class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
Returns:
the kind of the token


Copyright © 2014 Apache Software Foundation. All Rights Reserved.