public class PlainFactory extends Object implements AuthenticatorFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
SIMPLE_NAME |
| Constructor and Description |
|---|
PlainFactory() |
PlainFactory(UserAuthenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hadoop.security.UserGroupInformation |
createAndLoginUser(Map<String,?> properties)
Create and get the login user based on the given properties.
|
SaslClient |
createSaslClient(org.apache.hadoop.security.UserGroupInformation ugi,
Map<String,?> properties)
The caller is responsible for
disposing the returned SaslClient. |
SaslServer |
createSaslServer(org.apache.hadoop.security.UserGroupInformation ugi,
Map<String,?> properties)
The caller is responsible for
disposing the returned SaslServer. |
UserAuthenticator |
getAuthenticator() |
String |
getSimpleName()
Name of the mechanism, in upper case.
|
public static final String SIMPLE_NAME
public PlainFactory()
public PlainFactory(UserAuthenticator authenticator)
public String getSimpleName()
AuthenticatorFactorygetSimpleName in interface AuthenticatorFactorypublic org.apache.hadoop.security.UserGroupInformation createAndLoginUser(Map<String,?> properties) throws IOException
AuthenticatorFactorycreateAndLoginUser in interface AuthenticatorFactoryproperties - config propertiesIOExceptionpublic SaslServer createSaslServer(org.apache.hadoop.security.UserGroupInformation ugi, Map<String,?> properties) throws SaslException
AuthenticatorFactorydisposing the returned SaslServer.createSaslServer in interface AuthenticatorFactoryugi - ugiproperties - config propertiesSaslExceptionpublic SaslClient createSaslClient(org.apache.hadoop.security.UserGroupInformation ugi, Map<String,?> properties) throws SaslException
AuthenticatorFactorydisposing the returned SaslClient.createSaslClient in interface AuthenticatorFactoryugi - ugiproperties - config propertiesSaslExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic UserAuthenticator getAuthenticator()
Copyright © 2021 The Apache Software Foundation. All rights reserved.