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()
SecurityTokenProvidergetTokens in interface SecurityTokenProviderpublic void addTokens(byte[] tokens)
addTokens in interface SecurityTokenProvidertokens - 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.