Enum Class PowerAuthSignatureTypes

java.lang.Object
java.lang.Enum<PowerAuthSignatureTypes>
io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes
All Implemented Interfaces:
Serializable, Comparable<PowerAuthSignatureTypes>, Constable

public enum PowerAuthSignatureTypes extends Enum<PowerAuthSignatureTypes>
Enum with signature type values.
Author:
Petr Dvorak, petr@wultra.com
  • Enum Constant Details

    • POSSESSION

      public static final PowerAuthSignatureTypes POSSESSION
      1FA signature using possession factor key, value = "possession"
    • KNOWLEDGE

      public static final PowerAuthSignatureTypes KNOWLEDGE
      1FA signature using knowledge factor key, value = "knowledge"
    • BIOMETRY

      public static final PowerAuthSignatureTypes BIOMETRY
      1FA signature using biometry factor key, value = "biometry"
    • POSSESSION_KNOWLEDGE

      public static final PowerAuthSignatureTypes POSSESSION_KNOWLEDGE
      2FA signature using possession and knowledge factor key, value = "possession_knowledge"
    • POSSESSION_BIOMETRY

      public static final PowerAuthSignatureTypes POSSESSION_BIOMETRY
      2FA signature using possession and biometry factor key, value = "possession_biometry"
    • POSSESSION_KNOWLEDGE_BIOMETRY

      public static final PowerAuthSignatureTypes POSSESSION_KNOWLEDGE_BIOMETRY
      3FA signature using possession, knowledge and biometry factor key, value = "possession_knowledge_biometry"
  • Method Details

    • values

      public static PowerAuthSignatureTypes[] 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 PowerAuthSignatureTypes 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
    • getEnumFromString

      public static PowerAuthSignatureTypes getEnumFromString(String value)
      Get enum value from provided string. In case the provided value does not match any value, null value is returned.
      Parameters:
      value - String to get the enum value for.
      Returns:
      Enum value.
    • equalsName

      public boolean equalsName(String otherName)
      Check if the enum value has the same name as a given string.
      Parameters:
      otherName - Name to be checked.
      Returns:
      True in case of enum value is equal to provided name.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PowerAuthSignatureTypes>