Class TokenProvider

java.lang.Object
org.apache.hadoop.hbase.security.token.TokenProvider
All Implemented Interfaces:
Coprocessor, RegionCoprocessor, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface

@Private public class TokenProvider extends Object implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface, RegionCoprocessor
Provides a service for obtaining authentication tokens via the AuthenticationProtos AuthenticationService coprocessor service.
  • Field Details

  • Constructor Details

  • Method Details

    • start

      public void start(CoprocessorEnvironment env)
      Description copied from interface: Coprocessor
      Called by the CoprocessorEnvironment during it's own startup to initialize the coprocessor.
      Specified by:
      start in interface Coprocessor
    • stop

      public void stop(CoprocessorEnvironment env) throws IOException
      Description copied from interface: Coprocessor
      Called by the CoprocessorEnvironment during it's own shutdown to stop the coprocessor.
      Specified by:
      stop in interface Coprocessor
      Throws:
      IOException
    • isAllowedDelegationTokenOp

      private boolean isAllowedDelegationTokenOp(org.apache.hadoop.security.UserGroupInformation ugi) throws IOException
      Parameters:
      ugi - A user group information.
      Returns:
      true if delegation token operation is allowed
      Throws:
      IOException
    • getServices

      public Iterable<com.google.protobuf.Service> getServices()
      Description copied from interface: Coprocessor
      Coprocessor endpoints providing protobuf services should override this method.
      Specified by:
      getServices in interface Coprocessor
      Returns:
      Iterable of Services or empty collection. Implementations should never return null.
    • getAuthenticationToken

      public void getAuthenticationToken(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponse> done)
      Specified by:
      getAuthenticationToken in interface org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface
    • whoAmI

      public void whoAmI(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done)
      Specified by:
      whoAmI in interface org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface