Package co.arago.hiro.client.rest
Class AuthAPI.PutMePasswordCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<T,R>
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf<AuthAPI.PutMePasswordCommand,HiroVertexMessage>
-
- co.arago.hiro.client.rest.AuthAPI.PutMePasswordCommand
-
- Enclosing class:
- AuthAPI
public class AuthAPI.PutMePasswordCommand extends AuthenticatedAPIHandler.SendBodyAPIRequestConf<AuthAPI.PutMePasswordCommand,HiroVertexMessage>
change password of current token's accountAPI PUT /api/auth/[version]/me/password
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
body
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPutMePasswordCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HiroVertexMessageexecute()protected AuthAPI.PutMePasswordCommandself()AuthAPI.PutMePasswordCommandsetPasswords(java.lang.String oldPassword, java.lang.String newPassword)-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
setBody, setJsonBodyFromMap, setJsonBodyFromMessage
-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
setPasswords
public AuthAPI.PutMePasswordCommand setPasswords(java.lang.String oldPassword, java.lang.String newPassword)
-
self
protected AuthAPI.PutMePasswordCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.PutMePasswordCommand,HiroVertexMessage>
-
execute
public HiroVertexMessage execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.PutMePasswordCommand,HiroVertexMessage>- Returns:
- A
HiroVertexMessagewith the result data. - Throws:
HiroException- When the call returns a http status error.java.io.IOException- When the call got an IO error.java.lang.InterruptedException- When the call gets interrupted.
-
-