Class AbstractBaseStepV2

java.lang.Object
io.getlime.security.powerauth.lib.cmd.steps.v2.AbstractBaseStepV2
All Implemented Interfaces:
BaseStep
Direct Known Subclasses:
CreateActivationStep, CreateTokenStep, EncryptStep, GetStatusStep, PrepareActivationStep, RemoveStep, RemoveTokenStep, VaultUnlockStep

public abstract class AbstractBaseStepV2
extends java.lang.Object
implements BaseStep
Abstract class for PowerAuth steps at version 2
Author:
Lukas Lukovsky, lukas.lukovsky@wultra.com
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected static StepLogger DEFAULT_STEP_LOGGER
    Default step logger
    protected StepLogger stepLogger
    Step logger instance
  • Constructor Summary

    Constructors
    Constructor Description
    AbstractBaseStepV2​(PowerAuthStep step, java.util.List<PowerAuthVersion> supportedVersions, StepLogger stepLogger)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    org.json.simple.JSONObject execute​(StepLogger stepLogger, java.util.Map<java.lang.String,​java.lang.Object> context)
    Execute this step with given logger and context objects.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.getlime.security.powerauth.lib.cmd.steps.BaseStep

    execute, getStep, getSupportedVersions
  • Field Details

    • DEFAULT_STEP_LOGGER

      protected static final StepLogger DEFAULT_STEP_LOGGER
      Default step logger
    • stepLogger

      protected StepLogger stepLogger
      Step logger instance
  • Constructor Details

    • AbstractBaseStepV2

      public AbstractBaseStepV2​(PowerAuthStep step, java.util.List<PowerAuthVersion> supportedVersions, StepLogger stepLogger)
      Constructor
      Parameters:
      step - PowerAuth step
      supportedVersions - Supported versions of PowerAuth
      stepLogger - Step logger instance
  • Method Details

    • execute

      public final org.json.simple.JSONObject execute​(StepLogger stepLogger, java.util.Map<java.lang.String,​java.lang.Object> context) throws java.lang.Exception
      Execute this step with given logger and context objects.

      Keeps backward compatibility with former approaches of step instantiation and execution

      Parameters:
      stepLogger - Step logger.
      context - Context objects.
      Returns:
      Result status object (with current activation status), null in case of failure.
      Throws:
      java.lang.Exception - In case of a failure.