Class KerberosFactory
java.lang.Object
org.apache.drill.exec.rpc.security.kerberos.KerberosFactory
- All Implemented Interfaces:
AutoCloseable,AuthenticatorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.hadoop.security.UserGroupInformationcreateAndLoginUser(Map<String, ?> properties) Create and get the login user based on the given properties.createSaslClient(org.apache.hadoop.security.UserGroupInformation ugi, Map<String, ?> properties) The caller is responsible fordisposingthe returned SaslClient.createSaslServer(org.apache.hadoop.security.UserGroupInformation ugi, Map<String, ?> properties) The caller is responsible fordisposingthe returned SaslServer.Name of the mechanism, in upper case.
-
Constructor Details
-
KerberosFactory
public KerberosFactory()
-
-
Method Details
-
getSimpleName
Description copied from interface:AuthenticatorFactoryName of the mechanism, in upper case. If this mechanism is present in the list of enabled mechanisms, an instance of this factory is loaded. Note that the simple name maybe the same as it's SASL name.- Specified by:
getSimpleNamein interfaceAuthenticatorFactory- Returns:
- mechanism name
-
createAndLoginUser
public org.apache.hadoop.security.UserGroupInformation createAndLoginUser(Map<String, ?> properties) throws IOExceptionDescription copied from interface:AuthenticatorFactoryCreate and get the login user based on the given properties.- Specified by:
createAndLoginUserin interfaceAuthenticatorFactory- Parameters:
properties- config properties- Returns:
- ugi
- Throws:
IOException
-
createSaslServer
public SaslServer createSaslServer(org.apache.hadoop.security.UserGroupInformation ugi, Map<String, ?> properties) throws SaslExceptionDescription copied from interface:AuthenticatorFactoryThe caller is responsible fordisposingthe returned SaslServer.- Specified by:
createSaslServerin interfaceAuthenticatorFactory- Parameters:
ugi- ugiproperties- config properties- Returns:
- sasl server
- Throws:
SaslException
-
createSaslClient
public SaslClient createSaslClient(org.apache.hadoop.security.UserGroupInformation ugi, Map<String, ?> properties) throws SaslExceptionDescription copied from interface:AuthenticatorFactoryThe caller is responsible fordisposingthe returned SaslClient.- Specified by:
createSaslClientin interfaceAuthenticatorFactory- Parameters:
ugi- ugiproperties- config properties- Returns:
- sasl client
- Throws:
SaslException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-