org.apache.hadoop.yarn.api.records
Class Token

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.Token

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class Token
extends Object

Token is the security entity used by the framework to verify authenticity of any resource.


Constructor Summary
Token()
           
 
Method Summary
abstract  ByteBuffer getIdentifier()
          Get the token identifier.
abstract  String getKind()
          Get the token kind.
abstract  ByteBuffer getPassword()
          Get the token password
abstract  String getService()
          Get the service to which the token is allocated.
static Token newInstance(byte[] identifier, String kind, byte[] password, String service)
           
abstract  void setIdentifier(ByteBuffer identifier)
           
abstract  void setKind(String kind)
           
abstract  void setPassword(ByteBuffer password)
           
abstract  void setService(String service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Token

public Token()
Method Detail

newInstance

@InterfaceAudience.Private
@InterfaceStability.Unstable
public static Token newInstance(byte[] identifier,
                                                                                      String kind,
                                                                                      byte[] password,
                                                                                      String service)

getIdentifier

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract ByteBuffer getIdentifier()
Get the token identifier.

Returns:
token identifier

setIdentifier

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setIdentifier(ByteBuffer identifier)

getPassword

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract ByteBuffer getPassword()
Get the token password

Returns:
token password

setPassword

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setPassword(ByteBuffer password)

getKind

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getKind()
Get the token kind.

Returns:
token kind

setKind

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setKind(String kind)

getService

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract String getService()
Get the service to which the token is allocated.

Returns:
service to which the token is allocated

setService

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setService(String service)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.