public final class UserCredentialSecurityTokenProvider extends Object implements SecurityTokenProvider
Modifier and Type | Method and Description |
---|---|
void |
addTokens(byte[] tokens)
Add serialized token to teh credentials.
|
byte[] |
getTokens()
Returns a ByteBuffer containing security tokens.
|
static byte[] |
serializeToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> token)
Helper method to serialize a security token.
|
public byte[] getTokens()
SecurityTokenProvider
getTokens
in interface SecurityTokenProvider
public void addTokens(byte[] tokens)
addTokens
in interface SecurityTokenProvider
tokens
- ByteBuffer containing token.public static byte[] serializeToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.AMRMTokenIdentifier> token)
token
- AM security token.Copyright © 2017 The Apache Software Foundation. All rights reserved.