java.lang.Object
io.getlime.security.powerauth.lib.cmd.steps.AbstractBaseStep<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse>
io.getlime.security.powerauth.lib.cmd.steps.v3.EncryptStep
All Implemented Interfaces:
BaseStep

@Component("encryptStepV3") public class EncryptStep extends AbstractBaseStep<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse>
Encrypt step encrypts request data using ECIES encryption in application or activation scope.

PowerAuth protocol versions:

  • 3.0
  • 3.1
  • 3.2
  • 3.3
Author:
Lukas Lukovsky, lukas.lukovsky@wultra.com, Roman Strobl, roman.strobl@wultra.com
  • Constructor Details

    • EncryptStep

      @Autowired public EncryptStep(ResultStatusService resultStatusService, StepLoggerFactory stepLoggerFactory)
      Constructor
      Parameters:
      resultStatusService - Result status service
      stepLoggerFactory - Step logger factory
    • EncryptStep

      public EncryptStep()
      Constructor for backward compatibility
  • Method Details

    • getResponseTypeReference

      protected org.springframework.core.ParameterizedTypeReference<io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse> getResponseTypeReference()
      Specified by:
      getResponseTypeReference in class AbstractBaseStep<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse>
      Returns:
      Type reference of the response object
    • prepareStepContext

      public StepContext<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse> prepareStepContext(StepLogger stepLogger, Map<String,Object> context) throws Exception
      Description copied from class: AbstractBaseStep
      Prepares a context for this step execution
      Specified by:
      prepareStepContext in class AbstractBaseStep<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse>
      Parameters:
      stepLogger - Step logger
      context - Context data
      Returns:
      Step context
      Throws:
      Exception - when an error during context preparation occurred.
    • processResponse

      public void processResponse(StepContext<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse> stepContext) throws Exception
      Description copied from class: AbstractBaseStep
      Optional processing of the response data
      Overrides:
      processResponse in class AbstractBaseStep<EncryptStepModel,io.getlime.security.powerauth.rest.api.model.response.EciesEncryptedResponse>
      Parameters:
      stepContext - Step context
      Throws:
      Exception - when an error during response processing occurred