org.apache.hadoop.hbase.security
Class SecurityInfo
java.lang.Object
org.apache.hadoop.hbase.security.SecurityInfo
@InterfaceAudience.Private
public class SecurityInfo
- extends Object
Maps RPC protocol interfaces to required configuration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityInfo
public SecurityInfo(String serverPrincipal,
AuthenticationProtos.TokenIdentifier.Kind tokenKind)
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
public String getServerPrincipal()
getTokenKind
public AuthenticationProtos.TokenIdentifier.Kind getTokenKind()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.