Interface PasswordService
-
- All Known Implementing Classes:
DefaultPasswordService
@Deprecated @Path("/passwordService/") public interface PasswordService
Deprecated.Use the new V2 password serviceorg.apache.archiva.redback.rest.api.services.v2.PasswordService- Since:
- 1.4
- Author:
- Olivier Lamy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description UserchangePassword(String userName, String previousPassword, String password, String passwordConfirmation)Deprecated.used to change the password on passwordChangeRequired state.UserchangePasswordWithKey(String password, String passwordConfirmation, String key)Deprecated.used to change the password on first user connection after registration use.
-
-
-
Method Detail
-
changePasswordWithKey
@GET @Path("changePasswordWithKey") @Produces({"application/json","application/xml","text/plain"}) User changePasswordWithKey(@QueryParam("password") String password, @QueryParam("passwordConfirmation") String passwordConfirmation, @QueryParam("key") String key) throws RedbackServiceExceptionDeprecated.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)- Returns:
- username
- Throws:
RedbackServiceException
-
changePassword
@GET @Path("changePassword") @Produces({"application/json","application/xml","text/plain"}) User changePassword(@QueryParam("userName") String userName, @QueryParam("previousPassword") String previousPassword, @QueryParam("password") String password, @QueryParam("passwordConfirmation") String passwordConfirmation) throws RedbackServiceExceptionDeprecated.used to change the password on passwordChangeRequired state.- Throws:
RedbackServiceException
-
-