Class SecureVaultService


  • @Service("secureVaultServiceV3")
    public class SecureVaultService
    extends java.lang.Object
    Service implementing secure vault functionality.

    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 setAuthenticationProvider​(PowerAuthAuthenticationProvider authenticationProvider)  
      void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)  
      io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse vaultUnlock​(io.getlime.security.powerauth.http.PowerAuthSignatureHttpHeader header, io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, javax.servlet.http.HttpServletRequest httpServletRequest)
      Unlock secure vault.
      • Methods inherited from class java.lang.Object

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

      • SecureVaultService

        public SecureVaultService()
    • Method Detail

      • setPowerAuthClient

        @Autowired
        public void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)
      • vaultUnlock

        public io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse vaultUnlock​(io.getlime.security.powerauth.http.PowerAuthSignatureHttpHeader header,
                                                                                                           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.PowerAuthSecureVaultException,
                                                                                                           io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException
        Unlock secure vault.
        Parameters:
        header - PowerAuth signature HTTP header.
        request - ECIES encrypted vault unlock request.
        httpServletRequest - HTTP servlet request.
        Returns:
        ECIES encrypted vault unlock response.
        Throws:
        io.getlime.security.powerauth.rest.api.base.exception.PowerAuthSecureVaultException - In case vault unlock request fails.
        io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException - In case authentication fails.