public class KerberosUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KerberosUtil.PentahoLoginConfiguration
A Login Configuration that is pre-configured based on our static configuration.
|
Modifier and Type | Field and 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 and Description |
---|
KerberosUtil() |
Modifier and Type | Method and Description |
---|---|
LoginContext |
getLoginContextFromKerberosCache(String principal) |
LoginContext |
getLoginContextFromKeytab(String principal,
String keytab) |
LoginContext |
getLoginContextFromUsernamePassword(String principal,
String password) |
public static final String KERBEROS_APP_NAME
public static final String PENTAHO_JAAS_DEBUG
public static final Map<String,String> LOGIN_CONFIG_BASE
public LoginContext getLoginContextFromKeytab(String principal, String keytab) throws LoginException
LoginException
public LoginContext getLoginContextFromUsernamePassword(String principal, String password) throws LoginException
LoginException
public LoginContext getLoginContextFromKerberosCache(String principal) throws LoginException
LoginException
Copyright © 2018 Hitachi Vantara. All rights reserved.