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 Tokenabstract voidsetIdentifier(ByteBuffer identifier) abstract voidsetKind(String kind) abstract 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
-