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

@Service("upgradeServiceV3")
public class UpgradeService
extends java.lang.Object
Service implementing upgrade functionality.

PowerAuth protocol versions:

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

    Constructors
    Constructor Description
    UpgradeService()  
  • Method Summary

    Modifier and Type Method Description
    void setAuthenticationProvider​(PowerAuthAuthenticationProvider authenticationProvider)  
    void setPowerAuthClient​(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)  
    io.getlime.core.rest.model.base.response.Response upgradeCommit​(java.lang.String signatureHeader, javax.servlet.http.HttpServletRequest httpServletRequest)
    Commit upgrade of activation to version 3.
    io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse upgradeStart​(io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, io.getlime.security.powerauth.http.PowerAuthEncryptionHttpHeader header)
    Start upgrade of activation to version 3.

    Methods inherited from class java.lang.Object

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

    • UpgradeService

      public UpgradeService()
  • Method Details

    • setPowerAuthClient

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

      @Autowired public void setAuthenticationProvider​(PowerAuthAuthenticationProvider authenticationProvider)
    • upgradeStart

      public io.getlime.security.powerauth.rest.api.model.response.v3.EciesEncryptedResponse upgradeStart​(io.getlime.security.powerauth.rest.api.model.request.v3.EciesEncryptedRequest request, io.getlime.security.powerauth.http.PowerAuthEncryptionHttpHeader header) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthUpgradeException
      Start upgrade of activation to version 3.
      Parameters:
      request - ECIES encrypted upgrade start request.
      header - PowerAuth encryption HTTP header.
      Returns:
      ECIES encrypted upgrade activation response.
      Throws:
      io.getlime.security.powerauth.rest.api.base.exception.PowerAuthUpgradeException - In case upgrade start fails.
    • upgradeCommit

      public io.getlime.core.rest.model.base.response.Response upgradeCommit​(java.lang.String signatureHeader, javax.servlet.http.HttpServletRequest httpServletRequest) throws io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException, io.getlime.security.powerauth.rest.api.base.exception.PowerAuthUpgradeException
      Commit upgrade of activation to version 3.
      Parameters:
      signatureHeader - PowerAuth signature HTTP header.
      httpServletRequest - HTTP servlet request.
      Returns:
      Commit upgrade response.
      Throws:
      io.getlime.security.powerauth.rest.api.base.exception.PowerAuthAuthenticationException - in case authentication fails.
      io.getlime.security.powerauth.rest.api.base.exception.PowerAuthUpgradeException - In case upgrade commit fails.