@InterfaceAudience.Private public class HBaseSaslRpcClient extends AbstractHBaseSaslRpcClient
org.apache.hadoop.security
Modifier and Type | Class and Description |
---|---|
(package private) class |
HBaseSaslRpcClient.WrappedInputStream |
(package private) class |
HBaseSaslRpcClient.WrappedOutputStream |
AbstractHBaseSaslRpcClient.SaslClientCallbackHandler
Modifier and Type | Field and Description |
---|---|
private CryptoAES |
cryptoAES |
private boolean |
cryptoAesEnable |
private InputStream |
cryptoInputStream |
private OutputStream |
cryptoOutputStream |
private boolean |
initStreamForCrypto |
private static org.slf4j.Logger |
LOG |
private InputStream |
saslInputStream |
private OutputStream |
saslOutputStream |
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(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.CryptoCipherMeta cryptoCipherMeta,
org.apache.hadoop.conf.Configuration conf) |
private static void |
readStatus(DataInputStream inStream) |
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
private static final org.slf4j.Logger LOG
private boolean cryptoAesEnable
private InputStream saslInputStream
private InputStream cryptoInputStream
private OutputStream saslOutputStream
private OutputStream cryptoOutputStream
private boolean initStreamForCrypto
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
private static void readStatus(DataInputStream inStream) 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(org.apache.hadoop.hbase.shaded.protobuf.generated.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–2020 The Apache Software Foundation. All rights reserved.