|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.kernel.security.CredentialLoginModule
com.arsdigita.kernel.security.UserLoginModule
Authenticates a user (loads a user ID) from a credential stored in the current HTTP request.
Field Summary | |
static String |
NORMAL_CREDENTIAL_NAME
Name of the non-secure user authentication credential. |
static String |
SECURE_CREDENTIAL_NAME
Name of the secure user authentication credential. |
static String |
versionId
|
Fields inherited from class com.arsdigita.kernel.security.CredentialLoginModule |
FOREVER_SECS, LIFETIME_SECS, RENEW_SECS, TIMEOUT_SECS |
Constructor Summary | |
UserLoginModule(CredentialManager manager)
|
Method Summary | |
protected String |
getCredentialName()
Returns the name of the credential. |
protected long |
getLifetime()
Returns the lifetime of the credential in milliseconds. |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
Map shared,
Map options)
Initializes this login module and its CredentialManager
with the given login context information. |
protected boolean |
shouldInvalidateSession(String value)
Determines whether the user's session should be invalidated. |
Methods inherited from class com.arsdigita.kernel.security.CredentialLoginModule |
abort, commit, credentialHasValue, credentialIsOld, credentialIsSet, getForever, getRequest, getResponse, isSecure, loadID, login, logout, requestIsExcluded, saveID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String NORMAL_CREDENTIAL_NAME
public static final String SECURE_CREDENTIAL_NAME
Constructor Detail |
public UserLoginModule(CredentialManager manager)
Method Detail |
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, Map shared, Map options)
CredentialLoginModule
CredentialManager
with the given login context information. This method is called by
LoginContext
after this class is instantiated.
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class CredentialLoginModule
protected String getCredentialName() throws javax.security.auth.login.LoginException
getCredentialName
in class CredentialLoginModule
SECURE_CREDENTIAL_NAME
if the current request is
secure, otherwise returns NORMAL_CREDENTIAL_NAME
.
javax.security.auth.login.LoginException
- if an error occurs.protected long getLifetime() throws javax.security.auth.login.LoginException
getLifetime
in class CredentialLoginModule
FOREVER_SECS
in milliseconds if the user
requests permanent login, otherwise returns TIMEOUT_SECS
in milliseconds.
javax.security.auth.login.LoginException
- if an error occurs.protected boolean shouldInvalidateSession(String value) throws javax.security.auth.login.LoginException
shouldInvalidateSession
in class CredentialLoginModule
value
- the new value for the credential
javax.security.auth.login.LoginException
- if an error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |