|
|||||||||||
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
com.arsdigita.kernel.security.RecoveryLoginModule
Logs in a user for password recovery if the user has a valid authentication URL parameter.
Field Summary | |
static String |
versionId
|
Fields inherited from class com.arsdigita.kernel.security.UserLoginModule |
NORMAL_CREDENTIAL_NAME, SECURE_CREDENTIAL_NAME |
Fields inherited from class com.arsdigita.kernel.security.CredentialLoginModule |
FOREVER_SECS, LIFETIME_SECS, RENEW_SECS, TIMEOUT_SECS |
Constructor Summary | |
RecoveryLoginModule()
Creates a UserLoginModule that uses a URLManager to manage the credential value. |
Method Summary | |
boolean |
abort()
Ignores the results of the other login modules and calls commit(). |
boolean |
commit()
If this login module succeeded, sets the Subject as "recovering". |
protected String |
getCredentialName()
Gets the name of the credential. |
static String |
getParamName()
Returns the name of this login module's URL parameter. |
static String |
getParamValue(BigDecimal userID)
Returns a URL parameter value that will allow the given user to log in and change their password without entering their old password. |
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. |
static boolean |
isRecovering(javax.security.auth.Subject subject)
Determines whether the given Subject is recovering by checking whether it has a recovery credential. |
Methods inherited from class com.arsdigita.kernel.security.UserLoginModule |
getLifetime, shouldInvalidateSession |
Methods inherited from class com.arsdigita.kernel.security.CredentialLoginModule |
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
Constructor Detail |
public RecoveryLoginModule()
URLManager.shouldSetValue()
to return false
so that the recover credential is never
propagated to future requests.
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 UserLoginModule
public boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
commit
in class CredentialLoginModule
super.commit()
.
javax.security.auth.login.LoginException
- if an error occurs.public boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
abort
in class CredentialLoginModule
this.commit()
.
javax.security.auth.login.LoginException
- if an error occurs.protected String getCredentialName() throws javax.security.auth.login.LoginException
getCredentialName
in class UserLoginModule
javax.security.auth.login.LoginException
- if an error occurs.public static boolean isRecovering(javax.security.auth.Subject subject)
true
if the Subject has the recovery credential,
false
otherwise.public static String getParamName()
getParamValue()
.
getParamValue(BigDecimal)
public static String getParamValue(BigDecimal userID) throws CredentialEncodingException
userID
- the ID of the user that needs to recover
CredentialEncodingException
- if unable to create the value.getParamName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |