org.apache.hadoop.yarn.api.records.impl.pb
Class TokenPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ProtoBase<org.apache.hadoop.security.proto.SecurityProtos.TokenProto>
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)
|
TokenPBImpl
public TokenPBImpl()
TokenPBImpl
public TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
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.