org.apache.hadoop.yarn.api.records.impl.pb
Class TokenPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<org.apache.hadoop.security.proto.SecurityProtos.TokenProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.TokenPBImpl
All Implemented Interfaces:
Token
Direct Known Subclasses:
ClientTokenPBImpl, ContainerTokenPBImpl, DelegationTokenPBImpl

public class TokenPBImpl
extends ProtoBase<org.apache.hadoop.security.proto.SecurityProtos.TokenProto>
implements Token


Constructor Summary
TokenPBImpl()
           
TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
           
 
Method Summary
 ByteBuffer getIdentifier()
          Get the token identifier.
 String getKind()
          Get the token kind.
 ByteBuffer getPassword()
          Get the token password
 org.apache.hadoop.security.proto.SecurityProtos.TokenProto getProto()
           
 String getService()
          Get the service to which the token is allocated.
 void setIdentifier(ByteBuffer identifier)
           
 void setKind(String kind)
           
 void setPassword(ByteBuffer password)
           
 void setService(String service)
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenPBImpl

public TokenPBImpl()

TokenPBImpl

public TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
Method Detail

getProto

public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getProto()
Specified by:
getProto in class ProtoBase<org.apache.hadoop.security.proto.SecurityProtos.TokenProto>

getIdentifier

public ByteBuffer getIdentifier()
Description copied from interface: Token
Get the token identifier.

Specified by:
getIdentifier in interface Token
Returns:
token identifier

setIdentifier

public void setIdentifier(ByteBuffer identifier)
Specified by:
setIdentifier in interface Token

getPassword

public ByteBuffer getPassword()
Description copied from interface: Token
Get the token password

Specified by:
getPassword in interface Token
Returns:
token password

setPassword

public void setPassword(ByteBuffer password)
Specified by:
setPassword in interface Token

getKind

public String getKind()
Description copied from interface: Token
Get the token kind.

Specified by:
getKind in interface Token
Returns:
token kind

setKind

public void setKind(String kind)
Specified by:
setKind in interface Token

getService

public String getService()
Description copied from interface: Token
Get the service to which the token is allocated.

Specified by:
getService in interface Token
Returns:
service to which the token is allocated

setService

public void setService(String service)
Specified by:
setService in interface Token

toString

public String toString()
Overrides:
toString in class ProtoBase<org.apache.hadoop.security.proto.SecurityProtos.TokenProto>


Copyright © 2013 Apache Software Foundation. All Rights Reserved.