@InterfaceAudience.Private public class SecurityInfo extends Object
Constructor and Description |
---|
SecurityInfo(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind,
String... serverPrincipal) |
SecurityInfo(String serverPrincipal,
org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind) |
Modifier and Type | Method and Description |
---|---|
static void |
addInfo(String serviceName,
SecurityInfo securityInfo)
Adds a security configuration for a new service name.
|
static SecurityInfo |
getInfo(String serviceName)
Returns the security configuration associated with the given service name.
|
String |
getServerPrincipal()
Deprecated.
Since 2.6.0, will be removed in 4.0.0. Use
getServerPrincipals() instead. |
List<String> |
getServerPrincipals() |
org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind |
getTokenKind() |
public SecurityInfo(String serverPrincipal, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind)
public SecurityInfo(org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind, String... serverPrincipal)
public static void addInfo(String serviceName, SecurityInfo securityInfo)
public static SecurityInfo getInfo(String serviceName)
@Deprecated public String getServerPrincipal()
getServerPrincipals()
instead.SaslClientAuthenticationProvider
, so need to align with the deprecation cycle for that
class.public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getTokenKind()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.