public class HBaseSaslRpcClient extends Object
org.apache.hadoop.security| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
HBaseSaslRpcClient(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
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Release resources used by wrapped saslClient
|
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
|
public HBaseSaslRpcClient(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 methodIOExceptionpublic 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 wrapIOExceptionpublic void dispose()
throws SaslException
SaslExceptionCopyright © 2014 The Apache Software Foundation. All Rights Reserved.