|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordMgmtService
Provides common password management functionalities like
Method Summary | |
---|---|
PasswordPolicyInfo |
create(PasswordPolicyInfo passwordPolicyInfo) Create a new Password Policy |
void |
delete(java.lang.String passwordPolicyName) Delete the Password Policy |
java.util.Map |
getApplicableDefaultChallengeQuestions(java.lang.String username, java.lang.Boolean isUserLogin, java.util.Locale locale) Returns the localized challenge questions that are available in the system based on the passed locale . |
PasswordPolicyInfo |
getApplicablePasswordPolicy(java.lang.String userId) Returns the password policy info applicable to the user |
PasswordPolicyInfo |
getApplicablePasswordPolicy(java.lang.String userId, java.lang.Boolean isUserLogin) Returns the password policy info applicable to the user |
PasswordPolicyDescription |
getApplicablePasswordPolicyDescription(java.lang.String userID) Returns the description of the password policy applicable to the user |
PasswordPolicyDescription |
getApplicablePasswordPolicyDescription(java.lang.String userID, java.util.Locale locale) Returns the description of the password policy applicable to the user. |
PasswordPolicyDescription |
getApplicablePasswordPolicyDescription(java.lang.String userID, java.lang.String appInstance) Returns the description of the password policy applicable to the specific account |
PasswordPolicyDescription |
getApplicablePasswordPolicyDescription(java.lang.String userID, java.lang.String appInstance, java.util.Locale locale) Returns the description of the password policy applicable to the specific account |
PasswordPolicyDescription |
getApplicablePasswordPolicyDescription(User user) Returns the description of the password policy applicable to the user |
PasswordPolicyInfo |
getApplicablePasswordPolicyForOrg(java.lang.String orgID) Returns the password policy info applicable to the org |
PasswordPolicyInfo |
getDetails(java.lang.String passwordPolicyName) Get the details of specified Password Policy by Name |
PasswordPolicyDescription |
getPasswordPolicyDescriptionForOrg(java.lang.String orgKey, java.util.Locale locale) Returns the applicable password policy for the Organization. |
PasswordPolicyDescription |
getSystemDefaultPolicyDescription(java.util.Locale locale) Gets the system default policy description |
void |
resetPassword(java.lang.String userID) Deprecated. This method is not longer supported. The preferred way to do this is via UserManager.resetPassword(String,boolean) |
void |
resetPassword(java.lang.String userID, java.util.Map controls) Deprecated. This method is not longer supported. The preferred way to do this is via UserManager.resetPassword(String,boolean,Map) |
java.util.List |
search(SearchCriteria criteria) Search for the list of policies having a specified search criteria |
java.util.List |
search(SearchCriteria criteria, java.util.Map controlParams) Search for the list of policies having a specified search criteria |
void |
update(PasswordPolicyInfo passwordPolicyInfo) Update the attributes of the Password Policy specified. |
ValidationResult |
validatePasswordAgainstDefaultPolicy(char[] password, User user, java.util.Locale locale) Validates the password of a new user against the default policy Used in following scenarios Self Registration Creation of user by Delegated Admin |
ValidationResult |
validatePasswordAgainstPolicy(char[] password, java.lang.String userID, java.util.Locale locale) Validates the given password against the applicable Password Policy Used in following scenarios Validating the password entered by the user while changing his/her password Validating the password entered by a delegated admin while changing the password of the user |
ValidationResult |
validatePasswordAgainstPolicy(char[] password, java.lang.String userID, java.util.Locale locale, boolean isUserLogin) Validates the given password against the applicable Password Policy Used in the following scenarios Validating the password entered by the user while changing his/her password Validating the password entered by a delegated admin while changing the password of the user |
ValidationResult |
validatePasswordAgainstPolicy(char[] password, User user, java.util.Locale locale) Validates the password of a new user against the default policy, if user.getEntityId() is null Validates the password of a existing user against the applicable policy, if user.getEntityId() is not null |
ValidationResult |
validatePasswordAgainstPolicy(char[] password, User user, java.lang.String appInstance, java.util.Locale locale) Validates the password of a new account against the applicable policy |
ValidationResult |
validatePasswordAgainstPolicyForOrg(java.lang.String orgKey, User user, char[] password, java.util.Locale locale) Validate Passowrd against applicable Password policy of the org |
Method Detail |
---|
@Deprecated
void resetPassword(java.lang.String userID)
UserManager.resetPassword(String,boolean)
userID
- the userID of the user whose password is to be reset.UserManager.resetPassword(String,boolean)
@Deprecated
void resetPassword(java.lang.String userID,
java.util.Map controls)
UserManager.resetPassword(String,boolean,Map)
userID
- the userID of the user whose password is to be reset.controls
- This Map contains control parameters used for performing additional opreration along with reset password.UserManager.resetPassword(String,boolean,Map)
ValidationResult validatePasswordAgainstPolicy(char[] password, java.lang.String userID, java.util.Locale locale)
password
- the password to be validated, should not be nulluserID
- the User Login of the user, should not be null. Password will be validated against this user's applicable password policylocale
- the locale in which validation errors will be translated in case of password validation failure. If locale is null, It will return result in Server's default locale.ValidationResult
containing the result of the validation{@link
- UserNotFoundException} if failed to get user detailsjava.lang.NullPointerException
- if null userID or password is passed This object contains the validation status (success/failure) and the validation errors, if anyValidationResult validatePasswordAgainstPolicy(char[] password, java.lang.String userID, java.util.Locale locale, boolean isUserLogin)
password
- the password to be validated, should not be nulluserID
- The id of the user whose password is to be changed. The isUserLogin flag will decide where userID contains the user login or the entity ID. Password will be validated against this user's applicable password policylocale
- the locale in which validation errors will be translated in case of password validation failure. If locale is null, It will return result in Server's default locale.isUserLogin
- Set to true if the userID contains user login and false if the userID contains entity ID.ValidationResult
containing the result of the validation{@link
- UserNotFoundException} if failed to get user detailsjava.lang.NullPointerException
- if null userID or password is passed This object contains the validation status (success/failure) and the validation errors, if anyValidationResult validatePasswordAgainstPolicy(char[] password, User user, java.util.Locale locale)
password
- the password to be validateduser
- the user's attributes information typically requires firstName, lastName and user login. User ID to be set for existing users.locale
- the locale in which validation errors will be translated in case of password validation failure. If locale is null, It will return result in Server's default locale.ValidationResult
object containing the result of the validation.java.lang.NullPointerException
- if null password is passed{@link
- UserNotFoundException} if failed to get user detailsValidationResult validatePasswordAgainstDefaultPolicy(char[] password, User user, java.util.Locale locale)
password
- the password to be validateduser
- the user's attributes information typically requires firstName, lastName and user loginlocale
- the locale in which validation errors will be translated in case of password validation failure. If locale is null, It will return result in Server's default locale.ValidationResult
object containing the result of the validation.java.lang.NullPointerException
- if null password is passedPasswordPolicyDescription getApplicablePasswordPolicyDescription(User user)
user,
- the user's attributes information typically requires firstName, lastName and user loginPasswordPolicyDescription
the description of the PasswordPolicyPasswordPolicyDescription getApplicablePasswordPolicyDescription(java.lang.String userID)
userID
- the user login of the existing userPasswordPolicyDescription
the description of the PasswordPolicyPasswordPolicyDescription getApplicablePasswordPolicyDescription(java.lang.String userID, java.util.Locale locale)
userID
- the user login of the userlocale
- the locale in which password policy description is required. If locale is null, It will return result in Server's default locale.PasswordPolicyDescription
the description of the PasswordPolicyPasswordPolicyDescription getSystemDefaultPolicyDescription(java.util.Locale locale)
locale
- the locale in which password policy description is required. If locale is null, It will return result in Server's default locale.PasswordPolicyDescription
the description of the system wide default PasswordPolicyPasswordPolicyInfo create(PasswordPolicyInfo passwordPolicyInfo)
passwordPolicyInfo
- This VO contains the details of the Password Policy to be createdPasswordPolicyInfo
The information of the password policy createdPasswordPolicyInfo getDetails(java.lang.String passwordPolicyName)
passwordPolicyName
- The unique Name of the required password policyPasswordPolicyInfo
The VO containing the details of the recieved policyvoid update(PasswordPolicyInfo passwordPolicyInfo)
passwordPolicyInfo
- This VO contains the details to be updated for the Password Policyvoid delete(java.lang.String passwordPolicyName)
passwordPolicyName
- The unique Name of the password policy to be deletedjava.lang.Exception
java.util.List search(SearchCriteria criteria)
criteria
- This VO contains the search criteriajava.util.List search(SearchCriteria criteria, java.util.Map controlParams)
criteria
- This VO contains the search criteriacontrolParams
- Parameters to configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW parameters indicates which subset of the complete search result is to be fetched.
The SORTEDBY parameter indicates the attribute on which search result is to be sorted. There is no default sorting. Attribute names for PasswordPolicy (given at oracle.iam.passwordmgmt.vo.Constants$Attributes) can be used for this parameter - pwr_name, pwr_key, etc
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is operational only when SORTEDBY is set.
PasswordPolicyDescription getApplicablePasswordPolicyDescription(java.lang.String userID, java.lang.String appInstance) throws NoSuchPasswordPolicyException
userID
- the User Login of the user who is getting provision for this account, should not be null.appInstance
- name the application instance name to be provisionedNoSuchPasswordPolicyException
- if failed to get appInstance details.PasswordPolicyDescription getApplicablePasswordPolicyDescription(java.lang.String userID, java.lang.String appInstance, java.util.Locale locale) throws NoSuchPasswordPolicyException
userID
- the User Login of the user who is getting provision for this account, should not be null.appInstance
- name the application instance name to be provisionedlocale
- the locale in which password policy description is required. If locale is null, It will return result in Server's default locale.NoSuchPasswordPolicyException
- if failed to get appInstance details.ValidationResult validatePasswordAgainstPolicy(char[] password, User user, java.lang.String appInstance, java.util.Locale locale)
password
- the password to be validateduser
- the user's attributes informationappInstance
- name the application instance name to be provisionedlocale
- the locale in which validation errors will be translated in case of password validation failure. If locale is null, It will return result in Server's default locale.ValidationResult
object containing the result of the validation.java.lang.NullPointerException
- if null password is passedPasswordPolicyDescription getPasswordPolicyDescriptionForOrg(java.lang.String orgKey, java.util.Locale locale)
orgKey
- - the key of the organizationlocale
- - the locale in which password policy description is required. If locale is null, It will return result in Server's default locale.PasswordPolicyDescription
the description of PasswordPolicy attached to orgValidationResult validatePasswordAgainstPolicyForOrg(java.lang.String orgKey, User user, char[] password, java.util.Locale locale)
orgKey
- - the key of the organizationuser
- - the user for which password is to be validatedpassword
- - the password to be validatedlocale
- - the locale in which validation result is required. If locale is null, It will return result in Server's default locale.ValidationResult
object containing the result of the validation.PasswordPolicyInfo getApplicablePasswordPolicy(java.lang.String userId)
userId
- the user login of the existing user. If user login is null, default system password policy is returned. userId is treated as user-login. To fetch the applicable password policy for a given id(user-key) please usePasswordPolicyInfo
the PasswordPolicyInfo applicable to the userPasswordMgmtService.getApplicablePasswordPolicy(String, Boolean)
PasswordPolicyInfo getApplicablePasswordPolicy(java.lang.String userId, java.lang.Boolean isUserLogin)
userId
- the userID of the existing user. If userId is null, default system password policy is returned.isUserLogin
- the flag decides whether userID contains the user login(if true) or the entity ID (if false).PasswordPolicyInfo
the PasswordPolicyInfo applicable to the userPasswordMgmtService.getApplicablePasswordPolicy(String, Boolean)
PasswordPolicyInfo getApplicablePasswordPolicyForOrg(java.lang.String orgID)
orgID
- the organization id for which password policy needs to be returnedPasswordPolicyInfo
the PasswordPolicyInfo applicable to the orgjava.util.Map getApplicableDefaultChallengeQuestions(java.lang.String username, java.lang.Boolean isUserLogin, java.util.Locale locale)
userId
- the userID of the existing userisUserLogin
- the flag decides whether userID contains the user login(if true) or the entity ID (if false).locale
- the locale in which challenge questions are required.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |