public class RetrievePasswordResource extends AbstractResource<UserModel>
httpHeaders, providers, request, resourceCtx, securityCtx, serviceLocator, uriInfo| Constructor and Description |
|---|
RetrievePasswordResource() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encodePassword(java.lang.String userID,
java.lang.String newRawPassword)
Encode(MD5) new password for current user.
|
java.lang.String |
getNewPassword()
Randomize password for user.
|
Response |
getPasswordQuestion(java.lang.String userId)
Getting passwordQuestion for {userid}.
|
Response |
putPasswordAnswer(java.lang.String userId,
UserDTO dto)
Setting passwordAnswer and getting new password for {userid}.
|
protected UserModel |
readResource(java.lang.String resourceId)
Returns the user
|
void |
setEncoder(SaltedMD5PasswordEncoder encoder) |
afterDelete, afterPost, afterPut, beforeDelete, beforePost, beforePut, createDeleteResponse, createGetResponse, createOrUpdatePostResource, createOrUpdateResource, createPostResource, createPostResponse, createPutResponse, createPutResponse, createResource, deleteResource, getEventActionFactory, getPagingStrategy, getParentResource, getPostCommandHandler, getPutCommandHandler, getRequest, getResourceId, getResourceValue, getResponse, getSecurityContext, getSecurityStrategy, getServiceLocator, getUriInfo, isAccessGranted, isAccessGrantedExternal, notifyAfterDelete, notifyAfterGet, notifyAfterPost, notifyAfterPut, notifyBeforeDelete, notifyBeforeGet, notifyBeforePost, notifyBeforePut, processDtoId, processException, readPostResource, setCachingStrategy, setDeleteMethod, setEventActionFactory, setGetMethod, setPagingStrategy, setParentResource, setPostCommandHandler, setPostMethod, setPutCommandHandler, setPutMethod, setRequestProcessChain, setResourceId, setResourceValue, setSecurityStrategy, setServiceLocatorpublic Response getPasswordQuestion(java.lang.String userId)
userId - Responsepublic Response putPasswordAnswer(java.lang.String userId,
UserDTO dto)
userId - - each userdto - - UserDTOResponsepublic java.lang.String getNewPassword()
public java.lang.String encodePassword(java.lang.String userID,
java.lang.String newRawPassword)
userID - - userIDnewRawPassword - - new passwordprotected UserModel readResource(java.lang.String resourceId)
readResource in class AbstractResource<UserModel>public void setEncoder(SaltedMD5PasswordEncoder encoder)
Copyright © 2018 SAP SE. All Rights Reserved.