Interface BaseStep

All Known Implementing Classes:
ActivationRecoveryStep, CommitUpgradeStep, ConfirmRecoveryCodeStep, CreateActivationStep, CreateActivationStep, CreateTokenStep, CreateTokenStep, EncryptStep, EncryptStep, GetStatusStep, GetStatusStep, PrepareActivationStep, PrepareActivationStep, RemoveStep, RemoveStep, RemoveTokenStep, RemoveTokenStep, SignAndEncryptStep, StartUpgradeStep, VaultUnlockStep, VaultUnlockStep, VerifySignatureStep, VerifyTokenStep

public interface BaseStep
Interface for objects implementing execution steps.
Author:
Petr Dvorak, petr@wultra.com
  • Method Summary

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

    • execute

      org.json.simple.JSONObject execute​(StepLogger logger, java.util.Map<java.lang.String,​java.lang.Object> context) throws java.lang.Exception
      Execute this step with given logger and context objects.
      Parameters:
      logger - 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.