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 PasswordWebService
Web 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 PasswordChangeResponse
changePassword(PasswordChangeRequest request)
PasswordResetTokenResponse
generatePasswordResetToken(PasswordResetTokenRequest request)
Generates a temporary token that can be used as part of Secure challenge responsePasswordValidationResponse
getGlobalPasswordPolicyWithRules()
Policy
getPasswordPolicy(PasswordPolicyAssocSearchBean searchBean)
Retrieves password policy for given search criteria.String
getPasswordResetToken(PasswordResetTokenRequest request)
Retrieves password reset token for given request.PasswordValidationResponse
isPasswordValid(Password pswd)
Determines if a password associated with a principal is valid based on the policies for a security domain.ValidatePasswordResetTokenResponse
validatePasswordResetToken(String token)
Validates that the temporary token generated bygeneratePasswordResetToken
is 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:PasswordWebService
Determines if a password associated with a principal is valid based on the policies for a security domain.- Specified by:
isPasswordValid
in interfacePasswordWebService
- Parameters:
pswd
- Password that will be checked for validity.- Returns:
- PasswordValidationResponse.
-
generatePasswordResetToken
public PasswordResetTokenResponse generatePasswordResetToken(PasswordResetTokenRequest request)
Description copied from interface:PasswordWebService
Generates a temporary token that can be used as part of Secure challenge response- Specified by:
generatePasswordResetToken
in interfacePasswordWebService
- Parameters:
request
- Password reset token request.- Returns:
- PasswordResetTokenResponse.
-
validatePasswordResetToken
public ValidatePasswordResetTokenResponse validatePasswordResetToken(String token)
Description copied from interface:PasswordWebService
Validates that the temporary token generated bygeneratePasswordResetToken
is still valid- Specified by:
validatePasswordResetToken
in interfacePasswordWebService
- Parameters:
token
- Token which validity will be checked.- Returns:
- ValidatePasswordResetTokenResponse
-
getPasswordResetToken
public String getPasswordResetToken(PasswordResetTokenRequest request)
Description copied from interface:PasswordWebService
Retrieves password reset token for given request.- Specified by:
getPasswordResetToken
in interfacePasswordWebService
- Parameters:
request
- Password reset token request.- Returns:
- Password reset token.
-
getPasswordPolicy
public Policy getPasswordPolicy(PasswordPolicyAssocSearchBean searchBean)
Description copied from interface:PasswordWebService
Retrieves password policy for given search criteria.- Specified by:
getPasswordPolicy
in interfacePasswordWebService
- Parameters:
searchBean
- Search bean used for search criteria.- Returns:
- Policy.
-
getGlobalPasswordPolicyWithRules
public PasswordValidationResponse getGlobalPasswordPolicyWithRules()
- Specified by:
getGlobalPasswordPolicyWithRules
in interfacePasswordWebService
-
changePassword
public PasswordChangeResponse changePassword(PasswordChangeRequest request)
- Specified by:
changePassword
in interfacePasswordWebService
-
-