Package org.openiam.srvc.user
Class PasswordWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.user.PasswordWebServiceImpl
-
- All Implemented Interfaces:
PasswordWebService
@Service("passwordWS") public class PasswordWebServiceImpl extends AbstractApiService implements PasswordWebServiceWeb service implementation for the PasswordWebService- Author:
- suneet
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description PasswordWebServiceImpl(PasswordQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordChangeResponsechangePassword(PasswordChangeRequest request)PasswordResetTokenResponsegeneratePasswordResetToken(PasswordResetTokenRequest request)Generates a temporary token that can be used as part of Secure challenge responsePasswordValidationResponsegetGlobalPasswordPolicyWithRules()PolicygetPasswordPolicy(PasswordPolicyAssocSearchBean searchBean)Retrieves password policy for given search criteria.StringgetPasswordResetToken(PasswordResetTokenRequest request)Retrieves password reset token for given request.PasswordValidationResponseisPasswordValid(Password pswd)Determines if a password associated with a principal is valid based on the policies for a security domain.ValidatePasswordResetTokenResponsevalidatePasswordResetToken(String token)Validates that the temporary token generated bygeneratePasswordResetTokenis still valid-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
PasswordWebServiceImpl
@Autowired public PasswordWebServiceImpl(PasswordQueue queue)
-
-
Method Detail
-
isPasswordValid
public PasswordValidationResponse isPasswordValid(Password pswd)
Description copied from interface:PasswordWebServiceDetermines if a password associated with a principal is valid based on the policies for a security domain.- Specified by:
isPasswordValidin interfacePasswordWebService- Parameters:
pswd- Password that will be checked for validity.- Returns:
- PasswordValidationResponse.
-
generatePasswordResetToken
public PasswordResetTokenResponse generatePasswordResetToken(PasswordResetTokenRequest request)
Description copied from interface:PasswordWebServiceGenerates a temporary token that can be used as part of Secure challenge response- Specified by:
generatePasswordResetTokenin interfacePasswordWebService- Parameters:
request- Password reset token request.- Returns:
- PasswordResetTokenResponse.
-
validatePasswordResetToken
public ValidatePasswordResetTokenResponse validatePasswordResetToken(String token)
Description copied from interface:PasswordWebServiceValidates that the temporary token generated bygeneratePasswordResetTokenis still valid- Specified by:
validatePasswordResetTokenin interfacePasswordWebService- Parameters:
token- Token which validity will be checked.- Returns:
- ValidatePasswordResetTokenResponse
-
getPasswordResetToken
public String getPasswordResetToken(PasswordResetTokenRequest request)
Description copied from interface:PasswordWebServiceRetrieves password reset token for given request.- Specified by:
getPasswordResetTokenin interfacePasswordWebService- Parameters:
request- Password reset token request.- Returns:
- Password reset token.
-
getPasswordPolicy
public Policy getPasswordPolicy(PasswordPolicyAssocSearchBean searchBean)
Description copied from interface:PasswordWebServiceRetrieves password policy for given search criteria.- Specified by:
getPasswordPolicyin interfacePasswordWebService- Parameters:
searchBean- Search bean used for search criteria.- Returns:
- Policy.
-
getGlobalPasswordPolicyWithRules
public PasswordValidationResponse getGlobalPasswordPolicyWithRules()
- Specified by:
getGlobalPasswordPolicyWithRulesin interfacePasswordWebService
-
changePassword
public PasswordChangeResponse changePassword(PasswordChangeRequest request)
- Specified by:
changePasswordin interfacePasswordWebService
-
-