public class SaslRpcClient extends Object
限定符和类型 | 字段和说明 |
---|---|
static org.apache.commons.logging.Log |
LOG |
构造器和说明 |
---|
SaslRpcClient(SaslRpcServer.AuthMethod method,
Token<? extends TokenIdentifier> token,
String serverPrincipal,
boolean fallbackAllowed)
Create a SaslRpcClient for an authentication method
|
限定符和类型 | 方法和说明 |
---|---|
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
|
public SaslRpcClient(SaslRpcServer.AuthMethod method, Token<? extends TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed) throws IOException
method
- the requested authentication methodtoken
- token to use if needed by the authentication methodIOException
public boolean saslConnect(InputStream inS, OutputStream outS) throws IOException
inS
- InputStream to useoutS
- OutputStream to useIOException
public InputStream getInputStream(InputStream in) throws IOException
in
- the InputStream to wrapIOException
public OutputStream getOutputStream(OutputStream out) throws IOException
out
- the OutputStream to wrapIOException
public void dispose() throws SaslException
SaslException
Copyright © 2009 The Apache Software Foundation