@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(AuthMethod method,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
String serverPrincipal,
boolean fallbackAllowed)
Create a HBaseSaslRpcClient for an authentication method
|
protected |
AbstractHBaseSaslRpcClient(AuthMethod method,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
String serverPrincipal,
boolean fallbackAllowed,
String rpcProtection)
Create a HBaseSaslRpcClient for an authentication method
|
Modifier and Type | Method and Description |
---|---|
protected SaslClient |
createDigestSaslClient(String[] mechanismNames,
String saslDefaultRealm,
CallbackHandler saslClientCallbackHandler) |
protected SaslClient |
createKerberosSaslClient(String[] mechanismNames,
String userFirstPart,
String userSecondPart) |
void |
dispose()
Release resources used by wrapped saslClient
|
byte[] |
evaluateChallenge(byte[] challenge) |
byte[] |
getInitialResponse() |
boolean |
isComplete() |
protected final SaslClient saslClient
protected final boolean fallbackAllowed
protected AbstractHBaseSaslRpcClient(AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed) throws IOException
method
- the requested authentication methodtoken
- token to use if needed by the authentication methodserverPrincipal
- the server principal that we are trying to set the connection up tofallbackAllowed
- does the client allow fallback to simple authenticationIOException
protected AbstractHBaseSaslRpcClient(AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed, String rpcProtection) throws IOException
method
- the requested authentication methodtoken
- token to use if needed by the authentication methodserverPrincipal
- the server principal that we are trying to set the connection up tofallbackAllowed
- does the client allow fallback to simple authenticationrpcProtection
- the protection level ("authentication", "integrity" or "privacy")IOException
protected SaslClient createDigestSaslClient(String[] mechanismNames, String saslDefaultRealm, CallbackHandler saslClientCallbackHandler) throws IOException
IOException
protected SaslClient createKerberosSaslClient(String[] mechanismNames, String userFirstPart, String userSecondPart) throws IOException
IOException
public byte[] getInitialResponse() throws SaslException
SaslException
public boolean isComplete()
public byte[] evaluateChallenge(byte[] challenge) throws SaslException
SaslException
public void dispose()
Copyright © 2007–2019 Cloudera. All rights reserved.