public class SelfPasswordManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FAILED
Constant identifying the failed status.
|
static int |
SUCCEEDED
Constant identifying the success status.
|
| Constructor and Description |
|---|
SelfPasswordManager(PlatformContext platform)
Constructs the manager with a platform context.
|
| Modifier and Type | Method and Description |
|---|---|
SelfRequest |
changeExpiredPassword(java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword)
Changes the user's password without requiring an authenticated subject.
|
SelfRequest |
changeExpiredPassword(java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword,
boolean returnAllValidationFailures)
Changes the user's password without requiring an authenticated subject.
|
SelfRequest |
changePassword(java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword)
Deprecated.
As of ITIM 5.0, replaced by
changeExpiredPassword(String userId, String oldPassword, String newPassword)
. |
SelfRequest |
changePassword(java.lang.String tenantId,
java.lang.String userId,
java.lang.String oldPassword,
java.lang.String newPassword)
Deprecated.
As of ITIM 5.0
|
PasswordRulesInfo |
getPasswordRules(java.lang.String userId)
Returns the password rules for the given user's password.
|
PasswordRulesInfo |
getPasswordRules(java.lang.String tenantId,
java.lang.String userId)
Returns the password rules for the given user's password.
|
SelfRequest |
resetPassword(javax.security.auth.Subject subject)
Deprecated.
As of ISIM 6.0, replaced by
ForgotPasswordManager.resetPassword(String, java.util.Map) |
public static final int SUCCEEDED
public static final int FAILED
public SelfPasswordManager(PlatformContext platform)
platform - PlatformContext identifying identity platform.public SelfRequest changePassword(java.lang.String userId, java.lang.String oldPassword, java.lang.String newPassword) throws java.rmi.RemoteException, javax.security.auth.login.FailedLoginException, InvalidPasswordException, ApplicationException
changeExpiredPassword(String userId, String oldPassword, String newPassword)
.userId - ID representing user.oldPassword - Old password of the user.newPassword - New password of the user.java.rmi.RemoteException - Thrown if unable to communicate with platform.javax.security.auth.login.FailedLoginException - Thrown if old password is incorrect or if the user exceeds
the invalid logon attempts or if the account is not
active.InvalidPasswordException - Thrown if password does not pass a password policy check.ApplicationException - Thrown if unable to submit the request. This may possibly
be caused by an an invalid user id.public SelfRequest changePassword(java.lang.String tenantId, java.lang.String userId, java.lang.String oldPassword, java.lang.String newPassword) throws java.rmi.RemoteException, javax.security.auth.login.FailedLoginException, InvalidPasswordException, ApplicationException
tenantId - ID representing user's tenant.userId - ID representing user.oldPassword - Old password of the user.newPassword - New password of the user.java.rmi.RemoteException - Thrown if unable to communicate with platform.javax.security.auth.login.FailedLoginException - Thrown if old password is incorrect or if the user exceeds
the invalid logon attempts or if the account is not
active.InvalidPasswordException - Thrown if password does not pass a password policy check.ApplicationException - Thrown if unable to submit the request. This may possibly
be caused by an an invalid user id.public SelfRequest changeExpiredPassword(java.lang.String userId, java.lang.String oldPassword, java.lang.String newPassword) throws javax.security.auth.login.FailedLoginException, InvalidPasswordException, AuthorizationException, ApplicationException
userId - ID representing user.oldPassword - Old password of the user.newPassword - New password of the user.java.rmi.RemoteException - Thrown if unable to communicate with platform.javax.security.auth.login.FailedLoginException - Thrown if old password is incorrect or if the user exceeds
the invalid logon attempts or if the account is not
active.InvalidPasswordException - Thrown if password does not pass a password policy check.AuthorizationException - Thrown if client is unauthorized to change the password.ApplicationException - Thrown if unable to submit the request. This may possibly
be caused by an an invalid user id.public SelfRequest changeExpiredPassword(java.lang.String userId, java.lang.String oldPassword, java.lang.String newPassword, boolean returnAllValidationFailures) throws javax.security.auth.login.FailedLoginException, InvalidPasswordException, AuthorizationException, ApplicationException, PasswordValidationFailuresException
userId - ID representing user.oldPassword - Old password of the user.newPassword - New password of the user.returnAllValidationFailures - Whether to return all validation failuresjava.rmi.RemoteException - Thrown if unable to communicate with platform.javax.security.auth.login.FailedLoginException - Thrown if old password is incorrect or if the user exceeds
the invalid logon attempts or if the account is not
active.InvalidPasswordException - Thrown if password does not pass a password policy check.PasswordValidationFailuresException - Thrown if returnAllValidationFailures is trueAuthorizationException - Thrown if client is unauthorized to change the password.ApplicationException - Thrown if unable to submit the request. This may possibly
be caused by an an invalid user id.public PasswordRulesInfo getPasswordRules(java.lang.String userId) throws ApplicationException
userId - ID representing user.PasswordRulesInfo objectjava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if rules cannot be obtained. This may possibly due
to the password rules being mutually exclusive if password
synchronization is taking place.public PasswordRulesInfo getPasswordRules(java.lang.String tenantId, java.lang.String userId) throws ApplicationException
tenantId - ID representing user's tenant.userId - ID representing user.PasswordRulesInfo objectjava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if rules cannot be obtained. This may possibly due
to the password rules being mutually exclusive if password
synchronization is taking place.public SelfRequest resetPassword(javax.security.auth.Subject subject) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
ForgotPasswordManager.resetPassword(String, java.util.Map)ForgotPasswordManager.resetPassword(String, java.util.Map)
method to reset a password using challenge/response.subject - Subject representing the authenticated caller.java.rmi.RemoteException - Thrown if unable to communicate with platform.AuthorizationException - Thrown if client is unauthorized to reset the password.ApplicationException - Thrown if unable to submit the request. Possibly caused by
mutually exclusive password rules if passwords are being
synch'd.ForgotPasswordManager.resetPassword(String, java.util.Map)