public class KerberosFactory extends Object implements AuthenticatorFactory
| Constructor and Description |
|---|
KerberosFactory() |
| 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. |
String |
getSimpleName()
Name of the mechanism, in upper case.
|
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 Exception
close in interface AutoCloseableExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.