Class StepProvider

java.lang.Object
io.getlime.security.powerauth.lib.cmd.steps.StepProvider

@Component
public class StepProvider
extends java.lang.Object
Provider of PowerAuth step process components
Author:
Lukas Lukovsky, lukas.lukovsky@wultra.com
  • Constructor Details

    • StepProvider

      @Autowired public StepProvider​(java.util.List<BaseStep> stepList, StepLogger stepLogger)
      Constructor
      Parameters:
      stepList - All existing PowerAuth step components
      stepLogger - Step logger
  • Method Details

    • exists

      public boolean exists​(PowerAuthStep step)
      Provides information about existence of PowerAuth step process components
      Parameters:
      step - PowerAuth step identification
      Returns:
      true when there is a component for the specified PowerAuth step, false otherwise
    • getStep

      public BaseStep getStep​(PowerAuthStep step, PowerAuthVersion version) throws PowerAuthCmdException
      Provides step process component by PowerAuth step identification and version
      Parameters:
      step - PowerAuth step identification
      version - PowerAuth version
      Returns:
      Step process component corresponding to the specified PowerAuth step, version combination
      Throws:
      PowerAuthCmdException - when there is no such component for the provided PowerAuth step
    • getAvailableSteps

      public java.util.Set<PowerAuthStep> getAvailableSteps​(PowerAuthVersion version)
      Provides available PowerAuth steps for the specified PowerAuthVersion
      Parameters:
      version - PowerAuthVersion value
      Returns:
      Supported versions
    • getSupportedVersions

      public java.util.Set<PowerAuthVersion> getSupportedVersions​(PowerAuthStep step)
      Provides supported versions for the specified PowerAuth step
      Parameters:
      step - PowerAuth step identification
      Returns:
      Supported versions