Package org.apache.hadoop.hbase.security
Class SecurityInfo
java.lang.Object
org.apache.hadoop.hbase.security.SecurityInfo
Maps RPC protocol interfaces to required configuration
-
Field Summary
Modifier and TypeFieldDescriptionprivate static ConcurrentMap<String,
SecurityInfo> Maps RPC service names to authentication informationprivate final org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind
-
Constructor Summary
ConstructorDescriptionSecurityInfo
(String serverPrincipal, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind) SecurityInfo
(org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind, String... serverPrincipal) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addInfo
(String serviceName, SecurityInfo securityInfo) Adds a security configuration for a new service name.static SecurityInfo
Returns the security configuration associated with the given service name.Deprecated.Since 2.6.0, will be removed in 4.0.0.org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind
-
Field Details
-
infos
Maps RPC service names to authentication information -
serverPrincipals
-
tokenKind
private final org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind
-
-
Constructor Details
-
SecurityInfo
public SecurityInfo(String serverPrincipal, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind) -
SecurityInfo
public SecurityInfo(org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind, String... serverPrincipal)
-
-
Method Details
-
addInfo
Adds a security configuration for a new service name. Note that this will have no effect if the service name was already registered. -
getInfo
Returns the security configuration associated with the given service name. -
getServerPrincipal
Deprecated.Since 2.6.0, will be removed in 4.0.0. UsegetServerPrincipals()
instead.Although this class is IA.Private, we leak this class inSaslClientAuthenticationProvider
, so need to align with the deprecation cycle for that class. -
getServerPrincipals
-
getTokenKind
public org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getTokenKind()
-