Class KerberosUtil
java.lang.Object
org.pentaho.di.core.auth.kerberos.KerberosUtil
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A Login Configuration that is pre-configured based on our static configuration. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The application name to use when creating login contexts.Base properties to be inherited by all other LOGIN_CONFIG* configuration maps.Login Configuration options for KERBEROS_KEYTAB mode.static final String
The environment property to set to enable JAAS debugging for the LoginConfiguration created by this utility. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLoginContextFromKerberosCache
(String principal) getLoginContextFromKeytab
(String principal, String keytab) getLoginContextFromUsernamePassword
(String principal, String password)
-
Field Details
-
KERBEROS_APP_NAME
The application name to use when creating login contexts.- See Also:
-
PENTAHO_JAAS_DEBUG
The environment property to set to enable JAAS debugging for the LoginConfiguration created by this utility.- See Also:
-
LOGIN_CONFIG_BASE
Base properties to be inherited by all other LOGIN_CONFIG* configuration maps. -
LOGIN_CONFIG_OPTS_KERBEROS_KEYTAB
Login Configuration options for KERBEROS_KEYTAB mode.
-
-
Constructor Details
-
KerberosUtil
public KerberosUtil()
-
-
Method Details
-
getLoginContextFromKeytab
public LoginContext getLoginContextFromKeytab(String principal, String keytab) throws LoginException - Throws:
LoginException
-
getLoginContextFromUsernamePassword
public LoginContext getLoginContextFromUsernamePassword(String principal, String password) throws LoginException - Throws:
LoginException
-
getLoginContextFromKerberosCache
- Throws:
LoginException
-