Enum Class PowerAuthVersion

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

public enum PowerAuthVersion extends Enum<PowerAuthVersion>
PowerAuth protocol version enumeration
Author:
Lukas Lukovsky, lukas.lukovsky@wultra.com
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

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

      public static PowerAuthVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • useIv

      public boolean useIv()
      Provides flag whether encryption uses non-zero initialization vector

      This feature is supported only for protocol V3.1+.

      Returns:
      Flag whether encryption uses non-zero initialization vector
    • useDifferentIvForResponse

      public boolean useDifferentIvForResponse()
      Provides flag whether decryption uses different non-zero initialization vector.

      This feature is supported only for protocol V3.2+.

      Returns:
      Flag whether decryption uses different non-zero initialization vector.
    • useTimestamp

      public boolean useTimestamp()
      Provides flag whether encryption uses timestamp.

      This feature is supported only for protocol V3.2+.

      Returns:
      Flag whether encryption uses timestamp
    • useTemporaryKeys

      public boolean useTemporaryKeys()
      Provides flag whether encryption uses temporary keys.

      This feature is supported only for protocol V3.3.+

      Returns:
      Flag whether encryption uses temporary keys
    • value

      public String value()
      Returns:
      Version string value
    • fromValue

      public static PowerAuthVersion fromValue(String value)
      Detects a PowerAuth version from a provided value
      Parameters:
      value - Value to detect the version from
      Returns:
      PowerAuth version enum value matching the provided value
      Throws:
      IllegalStateException - When the value is not recognized as a PowerAuth version