public abstract class AbstractLoginHandler extends Object implements LoginHandler
| Modifier and Type | Field and Description |
|---|---|
private long |
authenticationDuration
Length of time, in milliseconds, after which a user should be re-authenticated.
|
private List<String> |
supportedAuthenticationMethods
Authentication methods this handler supports.
|
private boolean |
supportsForceAuthentication
Whether this handler supports forced re-authentication.
|
private boolean |
supportsPassive
Whether this handler supports passive authentication.
|
AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, AUTHENTICATION_METHOD_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, SUBJECT_KEY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoginHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAuthenticationDuration()
Gets the length of time, in milliseconds, after which a user authenticated by this handler should be
re-authenticated.
|
List<String> |
getSupportedAuthenticationMethods()
Gets the list of authentication methods this handler supports.
|
void |
setAuthenticationDuration(long duration)
Sets the length of time, in milliseconds, after which a user should be re-authenticated.
|
void |
setAuthenticationDurection(long duration)
Deprecated.
|
void |
setSupportsForceAuthentication(boolean supported)
Sets whether this handler supports forced re-authentication.
|
void |
setSupportsPassive(boolean supported)
Sets whether this handler supports passive authentication.
|
boolean |
supportsForceAuthentication()
Returns if this handler supports the ability to force a user to (re-)authenticate.
|
boolean |
supportsPassive()
Gets whether this handler supports passive authentication.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloginprivate List<String> supportedAuthenticationMethods
private long authenticationDuration
private boolean supportsForceAuthentication
private boolean supportsPassive
public List<String> getSupportedAuthenticationMethods()
getSupportedAuthenticationMethods in interface LoginHandlerpublic long getAuthenticationDuration()
getAuthenticationDuration in interface LoginHandlerpublic void setAuthenticationDuration(long duration)
duration - length of time, in milliseconds, after which a user should be re-authenticatedpublic void setAuthenticationDurection(long duration)
setAuthenticationDuration(long)duration - length of time, in milliseconds, after which a user should be re-authenticatedpublic boolean supportsForceAuthentication()
supportsForceAuthentication in interface LoginHandlerpublic void setSupportsForceAuthentication(boolean supported)
supported - whether this handler supports forced re-authenticationpublic boolean supportsPassive()
supportsPassive in interface LoginHandlerpublic void setSupportsPassive(boolean supported)
supported - whether this handler supports passive authentication.Copyright © 1999-2014. All Rights Reserved.