Enum PowerAuthStep

java.lang.Object
java.lang.Enum<PowerAuthStep>
io.getlime.security.powerauth.lib.cmd.consts.PowerAuthStep
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PowerAuthStep>, java.lang.constant.Constable

public enum PowerAuthStep
extends java.lang.Enum<PowerAuthStep>
PowerAuth step enumeration
Author:
Lukas Lukovsky, lukas.lukovsky@wultra.com
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    ACTIVATION_CREATE
    Creation of new activation using custom identity attributes
    ACTIVATION_CREATE_CUSTOM
    Creation of new activation
    ACTIVATION_PREPARE
    Deprecated.
    ACTIVATION_RECOVERY
    Recovering an activation
    ACTIVATION_REMOVE
    Removal of an existing activation
    ACTIVATION_STATUS
    Status retrieval of an existing activation
    ENCRYPT
    Send and verify an encrypted request
    RECOVERY_CONFIRM
    Confirming an activation recovery
    SIGN_ENCRYPT
    Send and verify a signed and encrypted request
    SIGNATURE_VERIFY
    Verifying a signed request
    TOKEN_CREATE
    Creating new token
    TOKEN_REMOVE
    Removing a previously created token
    TOKEN_VALIDATE
    Validating a previously created token
    UPGRADE_COMMIT
    Committing upgrade from activation version 2 to version 3
    UPGRADE_START
    Starting upgrade from activation version 2 to version 3
    VAULT_UNLOCK
    Unlocking secure vault
  • Method Summary

    Modifier and Type Method Description
    java.lang.String alias()  
    java.lang.String description()  
    static PowerAuthStep fromMethod​(java.lang.String value)
    Detects a PowerAuth step from a provided value
    java.lang.String id()  
    static PowerAuthStep valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static PowerAuthStep[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ACTIVATION_CREATE_CUSTOM

      public static final PowerAuthStep ACTIVATION_CREATE_CUSTOM
      Creation of new activation
    • ACTIVATION_CREATE

      public static final PowerAuthStep ACTIVATION_CREATE
      Creation of new activation using custom identity attributes
    • ACTIVATION_PREPARE

      @Deprecated public static final PowerAuthStep ACTIVATION_PREPARE
      Deprecated.
      Former creation of new activation
    • ACTIVATION_REMOVE

      public static final PowerAuthStep ACTIVATION_REMOVE
      Removal of an existing activation
    • ACTIVATION_RECOVERY

      public static final PowerAuthStep ACTIVATION_RECOVERY
      Recovering an activation
    • ACTIVATION_STATUS

      public static final PowerAuthStep ACTIVATION_STATUS
      Status retrieval of an existing activation
    • ENCRYPT

      public static final PowerAuthStep ENCRYPT
      Send and verify an encrypted request
    • RECOVERY_CONFIRM

      public static final PowerAuthStep RECOVERY_CONFIRM
      Confirming an activation recovery
    • SIGN_ENCRYPT

      public static final PowerAuthStep SIGN_ENCRYPT
      Send and verify a signed and encrypted request
    • SIGNATURE_VERIFY

      public static final PowerAuthStep SIGNATURE_VERIFY
      Verifying a signed request
    • TOKEN_CREATE

      public static final PowerAuthStep TOKEN_CREATE
      Creating new token
    • TOKEN_REMOVE

      public static final PowerAuthStep TOKEN_REMOVE
      Removing a previously created token
    • TOKEN_VALIDATE

      public static final PowerAuthStep TOKEN_VALIDATE
      Validating a previously created token
    • UPGRADE_COMMIT

      public static final PowerAuthStep UPGRADE_COMMIT
      Committing upgrade from activation version 2 to version 3
    • UPGRADE_START

      public static final PowerAuthStep UPGRADE_START
      Starting upgrade from activation version 2 to version 3
    • VAULT_UNLOCK

      public static final PowerAuthStep VAULT_UNLOCK
      Unlocking secure vault
  • Method Details

    • values

      public static PowerAuthStep[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PowerAuthStep valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • alias

      public java.lang.String alias()
      Returns:
      Alis of the step
    • description

      public java.lang.String description()
      Returns:
      Description of the step
    • id

      public java.lang.String id()
      Returns:
      Unique identification of the step
    • fromMethod

      public static PowerAuthStep fromMethod​(java.lang.String value)
      Detects a PowerAuth step from a provided value
      Parameters:
      value - Value to detect the step from
      Returns:
      PowerAuth step enum value matching the provided value
      Throws:
      java.lang.IllegalStateException - When the value is not recognized as a PowerAuth step