@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 | 
| 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(org.apache.hadoop.conf.Configuration conf,
                  SaslClientAuthenticationProvider provider,
                  org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
                  InetAddress serverAddr,
                  SecurityInfo securityInfo,
                  boolean fallbackAllowed) | 
| HBaseSaslRpcClient(org.apache.hadoop.conf.Configuration conf,
                  SaslClientAuthenticationProvider provider,
                  org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
                  InetAddress serverAddr,
                  SecurityInfo securityInfo,
                  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 | 
dispose, evaluateChallenge, getInitialResponse, isCompleteprivate 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(org.apache.hadoop.conf.Configuration conf, SaslClientAuthenticationProvider provider, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, InetAddress serverAddr, SecurityInfo securityInfo, boolean fallbackAllowed) throws IOException
IOExceptionpublic HBaseSaslRpcClient(org.apache.hadoop.conf.Configuration conf, SaslClientAuthenticationProvider provider, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, InetAddress serverAddr, SecurityInfo securityInfo, boolean fallbackAllowed, String rpcProtection, boolean initStreamForCrypto) throws IOException
IOExceptionprivate static void readStatus(DataInputStream inStream) throws IOException
IOExceptionpublic boolean saslConnect(InputStream inS, OutputStream outS) throws IOException
inS - InputStream to useoutS - OutputStream to useIOExceptionpublic String getSaslQOP()
public void initCryptoCipher(org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.CryptoCipherMeta cryptoCipherMeta, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.