Enum Class Requirement.CardReaderRequirement

java.lang.Object
java.lang.Enum<Requirement.CardReaderRequirement>
se.swedenconnect.bankid.rpapi.types.Requirement.CardReaderRequirement
All Implemented Interfaces:
Serializable, Comparable<Requirement.CardReaderRequirement>, Constable
Enclosing class:
Requirement

public static enum Requirement.CardReaderRequirement extends Enum<Requirement.CardReaderRequirement>
Represents a requirement for which type of smart card reader that is required.
  • Enum Constant Details

    • CLASS1

      public static final Requirement.CardReaderRequirement CLASS1
      The transaction must be performed using a smart card reader where the PIN code is entered on the computer's keyboard, or a card reader of a higher security class.
    • CLASS2

      public static final Requirement.CardReaderRequirement CLASS2
      The transaction must be performed using a smart card reader where the PIN code is entered on the reader itself, or a card reader of a higher security class.
  • Method Details

    • values

      public static Requirement.CardReaderRequirement[] 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 Requirement.CardReaderRequirement 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
    • forValue

      public static Requirement.CardReaderRequirement forValue(String value)
      Given a string representation its enum object is returned.
      Parameters:
      value - the string representation
      Returns:
      a CardReaderRequirement or null if not match is found
    • getValue

      public String getValue()
      Returns the string representation of the enum.
      Returns:
      the string representation