org.apache.hadoop.yarn.security
Class ApplicationTokenIdentifier

java.lang.Object
  extended by org.apache.hadoop.security.token.TokenIdentifier
      extended by org.apache.hadoop.yarn.security.ApplicationTokenIdentifier
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ApplicationTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier

ApplicationTokenIdentifier is the TokenIdentifier to be used by ApplicationMasters to authenticate to the ResourceManager.


Nested Class Summary
static class ApplicationTokenIdentifier.Renewer
           
 
Field Summary
static org.apache.hadoop.io.Text KIND_NAME
           
 
Constructor Summary
ApplicationTokenIdentifier()
           
ApplicationTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
           
 
Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
           
 org.apache.hadoop.io.Text getKind()
           
 org.apache.hadoop.security.UserGroupInformation getUser()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KIND_NAME

public static final org.apache.hadoop.io.Text KIND_NAME
Constructor Detail

ApplicationTokenIdentifier

public ApplicationTokenIdentifier()

ApplicationTokenIdentifier

public ApplicationTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
Method Detail

getApplicationAttemptId

@InterfaceAudience.Private
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

getKind

public org.apache.hadoop.io.Text getKind()
Specified by:
getKind in class org.apache.hadoop.security.token.TokenIdentifier

getUser

public org.apache.hadoop.security.UserGroupInformation getUser()
Specified by:
getUser in class org.apache.hadoop.security.token.TokenIdentifier


Copyright © 2012 Apache Software Foundation. All Rights Reserved.