Class KerberosUtil
- java.lang.Object
-
- org.pentaho.di.core.auth.kerberos.KerberosUtil
-
public class KerberosUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KerberosUtil.PentahoLoginConfiguration
A Login Configuration that is pre-configured based on our static configuration.
-
Field Summary
Fields Modifier and Type Field Description static String
KERBEROS_APP_NAME
The application name to use when creating login contexts.static Map<String,String>
LOGIN_CONFIG_BASE
Base properties to be inherited by all other LOGIN_CONFIG* configuration maps.static Map<String,String>
LOGIN_CONFIG_OPTS_KERBEROS_KEYTAB
Login Configuration options for KERBEROS_KEYTAB mode.static String
PENTAHO_JAAS_DEBUG
The environment property to set to enable JAAS debugging for the LoginConfiguration created by this utility.
-
Constructor Summary
Constructors Constructor Description KerberosUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginContext
getLoginContextFromKerberosCache(String principal)
LoginContext
getLoginContextFromKeytab(String principal, String keytab)
LoginContext
getLoginContextFromUsernamePassword(String principal, String password)
-
-
-
Field Detail
-
KERBEROS_APP_NAME
public static final String KERBEROS_APP_NAME
The application name to use when creating login contexts.- See Also:
- Constant Field Values
-
PENTAHO_JAAS_DEBUG
public static final String PENTAHO_JAAS_DEBUG
The environment property to set to enable JAAS debugging for the LoginConfiguration created by this utility.- See Also:
- Constant Field Values
-
LOGIN_CONFIG_BASE
public static final Map<String,String> LOGIN_CONFIG_BASE
Base properties to be inherited by all other LOGIN_CONFIG* configuration maps.
-
-
Method Detail
-
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
public LoginContext getLoginContextFromKerberosCache(String principal) throws LoginException
- Throws:
LoginException
-
-