public class ForgotPasswordManager
extends java.lang.Object
| Constructor and Description |
|---|
ForgotPasswordManager(PlatformContext platform)
Constructs the manager with a platform context.
|
| Modifier and Type | Method and Description |
|---|---|
ForgotPasswordRequest |
changePassword(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> challengesAndResponses,
java.lang.String newPassword)
The method changes the password for the associated userID after
authenticating the user using challengesAndResponses and verifying that
the system is set to allow password changes after challenge-response
authentication.
|
ForgotPasswordConfiguration |
getForgotPasswordConfiguration()
The method returns the Forgot Password Configuration.
|
java.util.Collection<java.lang.String> |
getSecretQuestion(java.lang.String userID)
The method gets a collection of secret questions to be asked when a user
forgets the password.
|
ForgotPasswordRequest |
resetPassword(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> challengesAndResponses)
The method resets the password for the associated userID after
authenticating using challenge response.
|
boolean |
validateChallengeResponse(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> challengesAndResponses)
The method checks the responses for the user challenges.
|
public ForgotPasswordManager(PlatformContext platform)
platform - PlatformContext identifying identity platform.public java.util.Collection<java.lang.String> getSecretQuestion(java.lang.String userID)
throws java.rmi.RemoteException,
ITIMFailedLoginException,
ApplicationException
The - userID parameter is the ID of the login user.A - RemoteException is thrown if a general exception occurs.A - ITIMFailedLoginException is thrown if an authentication error
occurs.A - ApplicationException is thrown if the method is unable to
retrieve the challenges.java.rmi.RemoteExceptionITIMFailedLoginExceptionApplicationExceptionpublic ForgotPasswordConfiguration getForgotPasswordConfiguration() throws ApplicationException, java.rmi.RemoteException, ITIMFailedLoginException
An - ITIMFailedLoginException is thrown if there was an
authentication error.A - RemoteException is thrown if a general exception occurs.An - ApplicationExcepton is thrown if the method is unable to
retrieve the setting.ApplicationExceptionjava.rmi.RemoteExceptionITIMFailedLoginExceptionpublic ForgotPasswordRequest resetPassword(java.lang.String userID, java.util.Map<java.lang.String,java.lang.String> challengesAndResponses) throws ITIMFailedLoginException, java.rmi.RemoteException, ApplicationException
The - userID parameter is the ID of the login user.The - challengesAndResponses parameter specifies a mapping of user
challenges and responses.An - ITIMFailedLoginException is thrown if there was an
authentication error.A - RemoteException is thrown if a general exception occurs.An - ApplicationExcepton is thrown if the method is unable to
reset the password.ITIMFailedLoginExceptionjava.rmi.RemoteExceptionApplicationExceptionpublic ForgotPasswordRequest changePassword(java.lang.String userID, java.util.Map<java.lang.String,java.lang.String> challengesAndResponses, java.lang.String newPassword) throws ITIMFailedLoginException, java.rmi.RemoteException, ApplicationException
The - userID parameter is the ID of the login user.The - challengesAndResponses parameter specifies a mapping of user
challenges and responses.The - newPassword parameter specifies the value of the new password.An - ITIMFailedLoginException is thrown if there was an
authentication error.A - RemoteException is thrown if a general exception occurs.An - ApplicationExcepton is thrown if the method is unable to
change the password.ITIMFailedLoginExceptionjava.rmi.RemoteExceptionApplicationExceptionpublic boolean validateChallengeResponse(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> challengesAndResponses)
throws java.rmi.RemoteException,
ITIMFailedLoginException,
ApplicationException
The - userID parameter is the ID of the login user.The - challengesAndResponses parameter specifies a mapping of user challenges and responses.java.rmi.RemoteException - is thrown if a general exception occurs.ITIMFailedLoginException - is thrown if there is an authentication error like, challenge response
is not enabled, user is not found, account is not active, and maximum number of incorrect login
attempts are exceeded.ApplicationException - is thrown if the method is unable to validate the challenges and responses.