Class SecureVaultController
- java.lang.Object
-
- io.getlime.security.powerauth.rest.api.spring.controller.v3.SecureVaultController
-
@RestController("secureVaultControllerV3") @RequestMapping("/pa/v3/vault") public class SecureVaultController extends java.lang.ObjectController implementing secure vault 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 SecureVaultController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetSecureVaultServiceV3(SecureVaultService secureVaultServiceV3)io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponseunlockVault(java.lang.String signatureHeader, io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, javax.servlet.http.HttpServletRequest httpServletRequest)Request the vault unlock key.
-
-
-
Method Detail
-
setSecureVaultServiceV3
@Autowired public void setSecureVaultServiceV3(SecureVaultService secureVaultServiceV3)
-
unlockVault
@RequestMapping(value="unlock", method=POST) public io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse unlockVault(@RequestHeader(value="X-PowerAuth-Authorization",defaultValue="unknown") java.lang.String signatureHeader, @RequestBody io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, javax.servlet.http.HttpServletRequest httpServletRequest) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException, io.getlime.security.powerauth.rest.api.base.exception.PowerAuthSecureVaultExceptionRequest the vault unlock key.- Parameters:
signatureHeader- PowerAuth HTTP signature header.request- Request object encrypted by ECIES.httpServletRequest- HTTP servlet request.- Returns:
- Response object encrypted by ECIES.
- Throws:
io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException- In case authentication fails.io.getlime.security.powerauth.rest.api.base.exception.PowerAuthSecureVaultException- In case unlocking the vault fails.
-
-