@InterfaceAudience.Private public class HBaseSaslRpcClient extends AbstractHBaseSaslRpcClient
org.apache.hadoop.security
fallbackAllowed, 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, isComplete
public HBaseSaslRpcClient(AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed) throws IOException
IOException
public 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
IOException
public boolean saslConnect(InputStream inS, OutputStream outS) throws IOException
inS
- InputStream to useoutS
- OutputStream to useIOException
public InputStream getInputStream(InputStream in) throws IOException
in
- the InputStream to wrapIOException
public OutputStream getOutputStream(OutputStream out) throws IOException
out
- the OutputStream to wrapIOException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.