Class DefaultPasswordService
- java.lang.Object
-
- org.apache.archiva.redback.rest.services.DefaultPasswordService
-
- All Implemented Interfaces:
PasswordService
@Deprecated @Service("passwordService#rest") public class DefaultPasswordService extends Object implements PasswordService
Deprecated.Use the new V2 versionDefaultAuthenticationService
- Since:
- 1.4
- Author:
- Olivier Lamy
-
-
Constructor Summary
Constructors Constructor Description DefaultPasswordService(SecuritySystem securitySystem, HttpAuthenticator httpAuthenticator, PasswordValidator passwordValidator)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description User
changePassword(String userName, String previousPassword, String password, String passwordConfirmation)
Deprecated.used to change the password on passwordChangeRequired state.User
changePasswordWithKey(String password, String passwordConfirmation, String key)
Deprecated.used to change the password on first user connection after registration use.
-
-
-
Constructor Detail
-
DefaultPasswordService
@Inject public DefaultPasswordService(SecuritySystem securitySystem, @Named("httpAuthenticator#basic") HttpAuthenticator httpAuthenticator, PasswordValidator passwordValidator)
Deprecated.
-
-
Method Detail
-
changePasswordWithKey
public User changePasswordWithKey(String password, String passwordConfirmation, String key) throws RedbackServiceException
Deprecated.Description copied from interface:PasswordService
used to change the password on first user connection after registration use. the key is mandatory and a control will be done on the username provided. need to be logged byUserService.validateUserFromKey(String)
- Specified by:
changePasswordWithKey
in interfacePasswordService
- Returns:
- username
- Throws:
RedbackServiceException
-
changePassword
public User changePassword(String userName, String previousPassword, String password, String passwordConfirmation) throws RedbackServiceException
Deprecated.Description copied from interface:PasswordService
used to change the password on passwordChangeRequired state.- Specified by:
changePassword
in interfacePasswordService
- Throws:
RedbackServiceException
-
-