|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.security.HBaseSaslRpcClient
public class HBaseSaslRpcClient
A utility class that encapsulates SASL logic for RPC client.
Copied from org.apache.hadoop.security
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
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 method
IOException| Method Detail |
|---|
public boolean saslConnect(InputStream inS,
OutputStream outS)
throws IOException
inS - InputStream to useoutS - OutputStream to use
IOException
public InputStream getInputStream(InputStream in)
throws IOException
in - the InputStream to wrap
IOException
public OutputStream getOutputStream(OutputStream out)
throws IOException
out - the OutputStream to wrap
IOException
public void dispose()
throws SaslException
SaslException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||