@InterfaceAudience.Private public class HBaseSaslRpcClient extends AbstractHBaseSaslRpcClient
org.apache.hadoop.securityfallbackAllowed, saslClient, saslProps| Constructor and Description |
|---|
HBaseSaslRpcClient(AuthMethod method,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
String serverPrincipal,
boolean fallbackAllowed) |
HBaseSaslRpcClient(AuthMethod method,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
String serverPrincipal,
boolean fallbackAllowed,
String rpcProtection) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(InputStream in)
Get a SASL wrapped InputStream.
|
OutputStream |
getOutputStream(OutputStream out)
Get a SASL wrapped OutputStream.
|
boolean |
saslConnect(InputStream inS,
OutputStream outS)
Do client side SASL authentication with server via the given InputStream and OutputStream
|
createDigestSaslClient, createKerberosSaslClient, dispose, evaluateChallenge, getInitialResponse, isCompletepublic HBaseSaslRpcClient(AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed) throws IOException
IOExceptionpublic HBaseSaslRpcClient(AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed, String rpcProtection) throws IOException
IOExceptionpublic boolean saslConnect(InputStream inS, OutputStream outS) throws IOException
inS - InputStream to useoutS - OutputStream to useIOExceptionpublic InputStream getInputStream(InputStream in) throws IOException
in - the InputStream to wrapIOExceptionpublic OutputStream getOutputStream(OutputStream out) throws IOException
out - the OutputStream to wrapIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.