public class SimpleClientAuthProvider extends ClientAuthProvider
Modifier and Type | Field and Description |
---|---|
static String |
USERNAME_KEY |
KEBEROS_CLIENT_AUTH_CODE, SIMPLE_CLIENT_AUTH_CODE
Constructor and Description |
---|
SimpleClientAuthProvider(HBaseClient hbase_client)
Default ctor
|
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 USERNAME_KEY
public SimpleClientAuthProvider(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.public SaslClient newSaslClient(String service_ip, Map<String,String> props)
ClientAuthProvider
newSaslClient
in class ClientAuthProvider
service_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 ClientAuthProvider
public byte getAuthMethodCode()
getAuthMethodCode
in class ClientAuthProvider
public Subject getClientSubject()
getClientSubject
in class ClientAuthProvider
Copyright © 2010-2017, The Async HBase Authors