|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.SaslRpcClient
public class SaslRpcClient
A utility class that encapsulates SASL logic for RPC client
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
SaslRpcClient(SaslRpcServer.AuthMethod method,
Token<? extends TokenIdentifier> token,
String serverPrincipal)
Create a SaslRpcClient 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 SaslRpcClient(SaslRpcServer.AuthMethod method, Token<? extends TokenIdentifier> token, String serverPrincipal) 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 |