Class Token
java.lang.Object
org.apache.hadoop.yarn.api.records.Token
Token is the security entity used by the framework
to verify authenticity of any resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ByteBufferGet the token identifier.abstract StringgetKind()Get the token kind.abstract ByteBufferGet the token passwordabstract StringGet the service to which the token is allocated.static TokennewInstance(byte[] identifier, String kind, byte[] password, String service) abstract voidsetIdentifier(ByteBuffer identifier) abstract voidabstract voidsetPassword(ByteBuffer password) abstract voidsetService(String service)
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
newInstance
-
getIdentifier
Get the token identifier.- Returns:
- token identifier
-
setIdentifier
-
getPassword
Get the token password- Returns:
- token password
-
setPassword
-
getKind
Get the token kind.- Returns:
- token kind
-
setKind
-
getService
Get the service to which the token is allocated.- Returns:
- service to which the token is allocated
-
setService
-