@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 String |
serverPrincipal |
private org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind |
tokenKind |
Constructor and Description |
---|
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() |
org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind |
getTokenKind() |
private static ConcurrentMap<String,SecurityInfo> infos
private final String serverPrincipal
private final org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind
public SecurityInfo(String serverPrincipal, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind tokenKind)
public static void addInfo(String serviceName, SecurityInfo securityInfo)
public static SecurityInfo getInfo(String serviceName)
public String getServerPrincipal()
public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.TokenIdentifier.Kind getTokenKind()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.