public final class PlainSaslUtils extends Object
PlainSaslServerProvider needed to support server-side PLAIN mechanism.
PlainSaslHelper is used to register this provider. It also provides methods to generate PLAIN
transport for server and client.| Modifier and Type | Class and Description |
|---|---|
static class |
PlainSaslUtils.PlainClientCallbackHandler
A client side callback to put application provided username/password into SASL transport.
|
| Constructor and Description |
|---|
PlainSaslUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.thrift.transport.TTransport |
getPlainClientTransport(String username,
String password,
org.apache.thrift.transport.TTransport wrappedTransport)
Gets a PLAIN mechanism transport for client side.
|
static org.apache.thrift.transport.TTransportFactory |
getPlainServerTransportFactory(AuthType authType,
TachyonConf conf)
For server side, get a PLAIN mechanism TTransportFactory.
|
static boolean |
isPlainSaslProviderAdded() |
public static boolean isPlainSaslProviderAdded()
public static org.apache.thrift.transport.TTransportFactory getPlainServerTransportFactory(AuthType authType, TachyonConf conf) throws SaslException
authType - the authentication typeconf - TachyonConfSaslException - if an AuthenticationProvider is not foundpublic static org.apache.thrift.transport.TTransport getPlainClientTransport(String username, String password, org.apache.thrift.transport.TTransport wrappedTransport) throws SaslException
username - User Name of PlainClientpassword - Password of PlainClientwrappedTransport - The original TransportSaslException - if an AuthenticationProvider is not foundCopyright © 2015. All Rights Reserved.