public interface AuthenticatorFactory extends AutoCloseable
getSimpleName()
). For every request for this mechanism (i.e. after establishing a connection),
createSaslServer(org.apache.hadoop.security.UserGroupInformation, java.util.Map<java.lang.String, ?>)
will be invoked on the server-side and createSaslClient(org.apache.hadoop.security.UserGroupInformation, java.util.Map<java.lang.String, ?>)
will be invoked
on the client-side.
Note:
+ Custom authenticators must have a default constructor.
Examples: PlainFactory and KerberosFactory.Modifier and Type | Method and Description |
---|---|
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.
|
close
String getSimpleName()
org.apache.hadoop.security.UserGroupInformation createAndLoginUser(Map<String,?> properties) throws IOException
properties
- config propertiesIOException
SaslServer createSaslServer(org.apache.hadoop.security.UserGroupInformation ugi, Map<String,?> properties) throws SaslException
disposing
the returned SaslServer.ugi
- ugiproperties
- config propertiesSaslException
SaslClient createSaslClient(org.apache.hadoop.security.UserGroupInformation ugi, Map<String,?> properties) throws SaslException
disposing
the returned SaslClient.ugi
- ugiproperties
- config propertiesSaslException
Copyright © 1970 The Apache Software Foundation. All rights reserved.