public class KerberosLogin extends AbstractLogin
AbstractLogin.LoginCallbackHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KINIT_CMD |
static java.lang.String |
MIN_TIME_BEFORE_RELOGIN |
static java.lang.String |
TICKET_RENEW_JITTER |
static java.lang.String |
TICKET_RENEW_WINDOW_FACTOR |
JAAS_CONFIG_SYSTEM_PROPERTY, jaasConfiguration, loginContext, loginContextName| Constructor and Description |
|---|
KerberosLogin() |
KerberosLogin(long tgtRenewalTimeoutMS) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this instance.
|
void |
configure(java.util.Map<java.lang.String,?> configs,
java.lang.String loginContextName)
Method to configure this instance with specific properties
|
void |
configure(java.util.Map<java.lang.String,?> configs,
java.lang.String loginContextName,
javax.security.auth.login.Configuration jaasConfig)
Method to configure this instance with specific properties
|
<T> T |
doAction(java.security.PrivilegedAction<T> action)
Execute a privileged action which respect to the login context of this instance.
|
javax.security.auth.login.LoginContext |
login()
Method called once initially to login.
|
public static final java.lang.String KINIT_CMD
public static final java.lang.String TICKET_RENEW_WINDOW_FACTOR
public static final java.lang.String TICKET_RENEW_JITTER
public static final java.lang.String MIN_TIME_BEFORE_RELOGIN
public KerberosLogin()
public KerberosLogin(long tgtRenewalTimeoutMS)
public void configure(java.util.Map<java.lang.String,?> configs,
java.lang.String loginContextName)
configure in interface Loginconfigure in class AbstractLoginloginContextName - name of section in JAAS file that will be used to login.
Passed as first param to javax.security.auth.login.LoginContext().configs - configure Login with the given key-value pairs.public void configure(java.util.Map<java.lang.String,?> configs,
java.lang.String loginContextName,
javax.security.auth.login.Configuration jaasConfig)
configure in class AbstractLoginloginContextName - name of section in JAAS file that will be used to login.
Passed as first param to javax.security.auth.login.LoginContext().configs - configure Login with the given key-value pairs.public javax.security.auth.login.LoginContext login()
throws javax.security.auth.login.LoginException
login in interface Loginlogin in class AbstractLoginjavax.security.auth.login.LoginException - if login failspublic void close()
Loginpublic <T> T doAction(java.security.PrivilegedAction<T> action)
throws javax.security.auth.login.LoginException
LogindoAction in interface LogindoAction in class AbstractLoginjavax.security.auth.login.LoginException