Class SecureVaultController
java.lang.Object
io.getlime.security.powerauth.rest.api.spring.controller.SecureVaultController
@RestController("secureVaultControllerV3")
@RequestMapping("/pa/v3/vault")
public class SecureVaultController
extends Object
Controller implementing secure vault related end-points from the
PowerAuth Standard API.
PowerAuth protocol versions:
- 3.0
- 3.1
- 3.2
- 3.3
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSecureVaultServiceV3(SecureVaultService secureVaultServiceV3) Set the secure vault service via setter injection.io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponseunlockVault(String signatureHeader, io.getlime.security.powerauth.rest.api.model.request.EciesEncryptedRequest request, jakarta.servlet.http.HttpServletRequest httpServletRequest) Request the vault unlock key.
-
Constructor Details
-
SecureVaultController
public SecureVaultController()
-
-
Method Details
-
setSecureVaultServiceV3
Set the secure vault service via setter injection.- Parameters:
secureVaultServiceV3- Secure vault service.
-
unlockVault
@PostMapping("unlock") public io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse unlockVault(@RequestHeader(value="X-PowerAuth-Authorization",defaultValue="unknown") String signatureHeader, @RequestBody io.getlime.security.powerauth.rest.api.model.request.EciesEncryptedRequest request, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws PowerAuthAuthenticationException, PowerAuthSecureVaultException Request 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:
PowerAuthAuthenticationException- In case authentication fails.PowerAuthSecureVaultException- In case unlocking the vault fails.
-