java.lang.Object
io.getlime.security.powerauth.rest.api.spring.controller.v3.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
Author:
Roman Strobl, roman.strobl@wultra.com
  • Constructor Details

    • SecureVaultController

      public SecureVaultController()
  • Method Details

    • setSecureVaultServiceV3

      @Autowired public void setSecureVaultServiceV3​(SecureVaultService secureVaultServiceV3)
      Set the secure vault service via setter injection.
      Parameters:
      secureVaultServiceV3 - Secure vault service.
    • 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") String signatureHeader, @RequestBody io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, javax.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.