Class RecoveryController
- java.lang.Object
-
- io.getlime.security.powerauth.rest.api.spring.controller.v3.RecoveryController
-
@RestController @RequestMapping("/pa/v3/recovery") public class RecoveryController extends java.lang.ObjectController implementing recovery related end-points from the PowerAuth Standard API.PowerAuth protocol versions:
- 3.0
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
-
Constructor Summary
Constructors Constructor Description RecoveryController(RecoveryService recoveryService)Service constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponseconfirmRecoveryCode(io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication)Confirm recovery code.
-
-
-
Constructor Detail
-
RecoveryController
public RecoveryController(RecoveryService recoveryService)
Service constructor.- Parameters:
recoveryService- Recovery service.
-
-
Method Detail
-
confirmRecoveryCode
@RequestMapping(value="confirm", method=POST) public io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse confirmRecoveryCode(@RequestBody io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, io.getlime.security.powerauth.rest.api.base.authentication.PowerAuthApiAuthentication authentication) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationExceptionConfirm recovery code.- Parameters:
request- ECIES encrypted request.authentication- PowerAuth API authentication object.- Returns:
- ECIES encrypted response.
- Throws:
io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException- In case confirm recovery fails.
-
-