@Path(value="") public class AccountManagementResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AccountManagementResource.ResetPasswordErrors |
Constructor and Description |
---|
AccountManagementResource(AccountManagementController accountManagementController) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
changePassword(PasswordChangeRequest request)
Changes user's password.
|
javax.ws.rs.core.Response |
forgottenPassword(String username)
Starts the procedure for forgotten password.
|
javax.ws.rs.core.Response |
forgottenUsername(String email)
Starts the procedure for forgotten username.
|
javax.ws.rs.core.Response |
resetPassword(PasswordResetRequest request)
Resets user's forgotten password.
|
protected javax.ws.rs.core.Response |
responseFromException(Exception e) |
TokenValidEntity |
validateToken(TokenValidRequest request)
Checks whether user's reset token is still valid
|
public AccountManagementResource(AccountManagementController accountManagementController)
@POST @Path(value="change-password") @Consumes(value="application/json") public javax.ws.rs.core.Response changePassword(PasswordChangeRequest request)
@POST @Path(value="reset-password") @Consumes(value="application/json") public javax.ws.rs.core.Response resetPassword(PasswordResetRequest request)
@POST @Path(value="token-status") @Consumes(value="application/json") @Produces(value="application/json") public TokenValidEntity validateToken(TokenValidRequest request)
@POST @Path(value="forgotten-password") @Consumes(value="application/json") public javax.ws.rs.core.Response forgottenPassword(@QueryParam(value="username") String username) throws ApplicationPermissionException
ApplicationPermissionException
@POST @Path(value="forgotten-username") @Consumes(value="application/json") public javax.ws.rs.core.Response forgottenUsername(@QueryParam(value="email") String email)
protected javax.ws.rs.core.Response responseFromException(Exception e)
Copyright © 2021 Atlassian. All rights reserved.