@InterfaceAudience.Private public abstract class AbstractHBaseSaslRpcClient extends Object
org.apache.hadoop.security
Modifier and Type | Field and Description |
---|---|
protected boolean |
fallbackAllowed |
protected SaslClient |
saslClient |
protected Map<String,String> |
saslProps |
Modifier | Constructor and Description |
---|---|
protected |
AbstractHBaseSaslRpcClient(org.apache.hadoop.conf.Configuration conf,
SaslClientAuthenticationProvider provider,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
InetAddress serverAddr,
String servicePrincipal,
boolean fallbackAllowed)
Create a HBaseSaslRpcClient for an authentication method
|
protected |
AbstractHBaseSaslRpcClient(org.apache.hadoop.conf.Configuration conf,
SaslClientAuthenticationProvider provider,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
InetAddress serverAddr,
String servicePrincipal,
boolean fallbackAllowed,
String rpcProtection)
Create a HBaseSaslRpcClient for an authentication method
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release resources used by wrapped saslClient
|
byte[] |
evaluateChallenge(byte[] challenge) |
byte[] |
getInitialResponse()
Computes the initial response a client sends to a server to begin the SASL challenge/response
handshake.
|
boolean |
isComplete() |
protected final SaslClient saslClient
protected final boolean fallbackAllowed
protected AbstractHBaseSaslRpcClient(org.apache.hadoop.conf.Configuration conf, SaslClientAuthenticationProvider provider, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, InetAddress serverAddr, String servicePrincipal, boolean fallbackAllowed) throws IOException
conf
- the configuration objectprovider
- the authentication providertoken
- token to use if needed by the authentication methodserverAddr
- the address of the hbase serviceservicePrincipal
- the service principal to use if needed by the authentication methodfallbackAllowed
- does the client allow fallback to simple authenticationIOException
protected AbstractHBaseSaslRpcClient(org.apache.hadoop.conf.Configuration conf, SaslClientAuthenticationProvider provider, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, InetAddress serverAddr, String servicePrincipal, boolean fallbackAllowed, String rpcProtection) throws IOException
conf
- configuration objectprovider
- the authentication providertoken
- token to use if needed by the authentication methodserverAddr
- the address of the hbase serviceservicePrincipal
- the service principal to use if needed by the authentication methodfallbackAllowed
- does the client allow fallback to simple authenticationrpcProtection
- the protection level ("authentication", "integrity" or "privacy")IOException
public byte[] getInitialResponse() throws SaslException
SaslException
public boolean isComplete()
public byte[] evaluateChallenge(byte[] challenge) throws SaslException
SaslException
public void dispose()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.