@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,
boolean initStreamForCrypto) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Get a SASL wrapped InputStream.
|
OutputStream |
getOutputStream()
Get a SASL wrapped OutputStream.
|
String |
getSaslQOP() |
void |
initCryptoCipher(RPCProtos.CryptoCipherMeta cryptoCipherMeta,
org.apache.hadoop.conf.Configuration conf) |
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, boolean initStreamForCrypto) throws IOException
IOException
public boolean saslConnect(InputStream inS, OutputStream outS) throws IOException
inS
- InputStream to useoutS
- OutputStream to useIOException
public String getSaslQOP()
public void initCryptoCipher(RPCProtos.CryptoCipherMeta cryptoCipherMeta, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
Copyright © 2007–2019 Cloudera. All rights reserved.