Class SecureVaultController


  • @RestController("secureVaultControllerV3")
    @RequestMapping("/pa/v3/vault")
    public class SecureVaultController
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setSecureVaultServiceV3​(SecureVaultService secureVaultServiceV3)  
      io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse unlockVault​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecureVaultController

        public SecureVaultController()
    • 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.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:
        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.