| Package | Description | 
|---|---|
| org.apache.hadoop.ipc | Tools to help define network clients and servers. | 
| org.apache.hadoop.security | |
| org.apache.hadoop.security.token | |
| org.apache.hadoop.security.token.delegation | |
| org.apache.hadoop.yarn.security | |
| org.apache.hadoop.yarn.security.client | |
| org.apache.hadoop.yarn.util | 
| Constructor and Description | 
|---|
| Server(String bindAddress,
      int port,
      Class<? extends Writable> rpcRequestClass,
      int handlerCount,
      int numReaders,
      int queueSizePerHandler,
      Configuration conf,
      String serverName,
      SecretManager<? extends TokenIdentifier> secretManager) | 
| Server(String bindAddress,
      int port,
      Class<? extends Writable> rpcRequestClass,
      int handlerCount,
      int numReaders,
      int queueSizePerHandler,
      Configuration conf,
      String serverName,
      SecretManager<? extends TokenIdentifier> secretManager,
      String portRangeConfig)Constructs a server listening on the named port and address. | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<Token<? extends TokenIdentifier>> | Credentials. getAllTokens()Return all the tokens in the in-memory map. | 
| Token<? extends TokenIdentifier> | Credentials. getToken(Text alias)Returns the Token object for the alias. | 
| Set<TokenIdentifier> | UserGroupInformation. getTokenIdentifiers()Get the set of TokenIdentifiers belonging to this UGI | 
| Collection<Token<? extends TokenIdentifier>> | UserGroupInformation. getTokens()Obtain the collection of tokens associated with this user. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | UserGroupInformation. addTokenIdentifier(TokenIdentifier tokenId)Add a TokenIdentifier to this UGI. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Credentials. addToken(Text alias,
        Token<? extends TokenIdentifier> t)Add a token in the storage (in memory). | 
| boolean | UserGroupInformation. addToken(Text alias,
        Token<? extends TokenIdentifier> token)Add a named token to this UGI | 
| boolean | UserGroupInformation. addToken(Token<? extends TokenIdentifier> token)Add a token to this UGI | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SecretManager<T extends TokenIdentifier>The server-side secret manager for each token type. | 
| class  | Token<T extends TokenIdentifier>The client-side form of the token. | 
| interface  | TokenSelector<T extends TokenIdentifier>Select token of type T from tokens for use with named service | 
| Modifier and Type | Method and Description | 
|---|---|
| Token<T> | TokenSelector. selectToken(Text service,
           Collection<Token<? extends TokenIdentifier>> tokens) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractDelegationTokenIdentifier | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AMRMTokenIdentifierAMRMTokenIdentifier is the TokenIdentifier to be used by
 ApplicationMasters to authenticate to the ResourceManager. | 
| class  | ContainerTokenIdentifierTokenIdentifier for a container. | 
| class  | NMTokenIdentifier | 
| Modifier and Type | Method and Description | 
|---|---|
| Token<AMRMTokenIdentifier> | AMRMTokenSelector. selectToken(Text service,
           Collection<Token<? extends TokenIdentifier>> tokens) | 
| Token<ContainerTokenIdentifier> | ContainerTokenSelector. selectToken(Text service,
           Collection<Token<? extends TokenIdentifier>> tokens) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ClientToAMTokenIdentifier | 
| class  | RMDelegationTokenIdentifierDelegation Token Identifier that identifies the delegation tokens from the 
 Resource Manager. | 
| class  | TimelineDelegationTokenIdentifier | 
| class  | org.apache.hadoop.yarn.security.client.YARNDelegationTokenIdentifier | 
| Modifier and Type | Method and Description | 
|---|---|
| Token<RMDelegationTokenIdentifier> | RMDelegationTokenSelector. selectToken(Text service,
           Collection<Token<? extends TokenIdentifier>> tokens) | 
| Token<TimelineDelegationTokenIdentifier> | TimelineDelegationTokenSelector. selectToken(Text service,
           Collection<Token<? extends TokenIdentifier>> tokens) | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends TokenIdentifier> | ConverterUtils. convertFromYarn(Token protoToken,
               InetSocketAddress serviceAddr)Convert a protobuf token into a rpc token and set its service. | 
| static <T extends TokenIdentifier> | ConverterUtils. convertFromYarn(Token protoToken,
               Text service)Convert a protobuf token into a rpc token and set its service. | 
Copyright © 2018 Apache Software Foundation. All rights reserved.