org.apache.hadoop.hbase.security
Class SecurityInfo

java.lang.Object
  extended by org.apache.hadoop.hbase.security.SecurityInfo

@InterfaceAudience.Private
public class SecurityInfo
extends Object

Maps RPC protocol interfaces to required configuration


Constructor Summary
SecurityInfo(String serverPrincipal, AuthenticationProtos.TokenIdentifier.Kind tokenKind)
           
 
Method Summary
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()
           
 AuthenticationProtos.TokenIdentifier.Kind getTokenKind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityInfo

public SecurityInfo(String serverPrincipal,
                    AuthenticationProtos.TokenIdentifier.Kind tokenKind)
Method Detail

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.