@InterfaceAudience.Private public abstract class AbstractHBaseSaslRpcClient extends Object
org.apache.hadoop.security
Modifier and Type | Field and Description |
---|---|
private static byte[] |
EMPTY_TOKEN |
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,
SecurityInfo securityInfo,
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,
SecurityInfo securityInfo,
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() |
boolean |
isComplete() |
private static final byte[] EMPTY_TOKEN
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, SecurityInfo securityInfo, 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 servicesecurityInfo
- the security details for the remote hbase servicefallbackAllowed
- 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, SecurityInfo securityInfo, 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 servicesecurityInfo
- the security details for the remote hbase servicefallbackAllowed
- 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.