public class KerberosClientAuthProvider extends ClientAuthProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD_KEY |
static String |
PRINCIPAL_KEY |
KEBEROS_CLIENT_AUTH_CODE, SIMPLE_CLIENT_AUTH_CODE| Constructor and Description |
|---|
KerberosClientAuthProvider(HBaseClient hbase_client)
Default ctor that will attempt a login and setup the Login singleton
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getAuthMethodCode() |
Subject |
getClientSubject() |
String |
getClientUsername() |
SaslClient |
newSaslClient(String service_ip,
Map<String,String> props)
Return a new SaslClient for target serviceIP host.
|
public static final String PASSWORD_KEY
public static final String PRINCIPAL_KEY
public KerberosClientAuthProvider(HBaseClient hbase_client)
hbase_client - The HBaseClient to fetch configuration and timers fromIllegalArgumentException - if the
asynchbase.security.auth.simple.username is missing, null or empty.IllegalStateException - if the login was unsuccessfulpublic SaslClient newSaslClient(String service_ip, Map<String,String> props)
ClientAuthProvidernewSaslClient in class ClientAuthProviderservice_ip - The IP of the target host.props - The set of properties with which to create a new client.public String getClientUsername()
getClientUsername in class ClientAuthProviderpublic byte getAuthMethodCode()
getAuthMethodCode in class ClientAuthProviderpublic Subject getClientSubject()
getClientSubject in class ClientAuthProviderCopyright © 2010-2017, The Async HBase Authors