@InterfaceAudience.Private public class SecurityInfo extends Object
Modifier and Type | Field and Description |
---|---|
private static ConcurrentMap<String,SecurityInfo> |
infos
Maps RPC service names to authentication information
|
private List<String> |
serverPrincipals |
private org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind |
tokenKind |
Constructor and Description |
---|
SecurityInfo(org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind,
String... serverPrincipal) |
SecurityInfo(String serverPrincipal,
org.apache.hadoop.hbase.shaded.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.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind |
getTokenKind() |
private static ConcurrentMap<String,SecurityInfo> infos
private final List<String> serverPrincipals
private final org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind
public SecurityInfo(String serverPrincipal, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind)
public SecurityInfo(org.apache.hadoop.hbase.shaded.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 List<String> getServerPrincipals()
public org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getTokenKind()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.