java.lang.Object
io.getlime.security.powerauth.rest.api.spring.service.v3.SecureVaultService

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

PowerAuth protocol versions:

  • 3.0
Author:
Roman Strobl, roman.strobl@wultra.com
  • Constructor Summary

    Constructors
    Constructor Description
    SecureVaultService​(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient, PowerAuthAuthenticationProvider authenticationProvider, HttpCustomizationService httpCustomizationService)
    Service constructor.
  • Method Summary

    Modifier and Type Method Description
    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 Details

    • SecureVaultService

      @Autowired public SecureVaultService​(com.wultra.security.powerauth.client.PowerAuthClient powerAuthClient, PowerAuthAuthenticationProvider authenticationProvider, HttpCustomizationService httpCustomizationService)
      Service constructor.
      Parameters:
      powerAuthClient - PowerAuth client.
      authenticationProvider - Authentication provider.
      httpCustomizationService - HTTP customization service.
  • Method Details

    • 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 PowerAuthSecureVaultException, 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:
      PowerAuthSecureVaultException - In case vault unlock request fails.
      PowerAuthAuthenticationException - In case authentication fails.