Class SecurityInfo

java.lang.Object
org.apache.hadoop.hbase.security.SecurityInfo

@Private public class SecurityInfo extends Object
Maps RPC protocol interfaces to required configuration
  • Field Details

  • Constructor Details

    • SecurityInfo

      public SecurityInfo(String serverPrincipal, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind)
    • SecurityInfo

      public SecurityInfo(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind, String... serverPrincipal)
  • Method Details

    • addInfo

      public static void addInfo(String serviceName, SecurityInfo securityInfo)
      Adds a security configuration for a new service name. Note that this will have no effect if the service name was already registered.
    • getInfo

      public static SecurityInfo getInfo(String serviceName)
      Returns the security configuration associated with the given service name.
    • getServerPrincipal

      Deprecated.
      Since 2.6.0, will be removed in 4.0.0. Use getServerPrincipals() instead.
      Although this class is IA.Private, we leak this class in SaslClientAuthenticationProvider, so need to align with the deprecation cycle for that class.
    • getServerPrincipals

    • getTokenKind

      public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getTokenKind()