Enum Class RfidCardType

java.lang.Object
java.lang.Enum<RfidCardType>
com.pi4j.crowpi.components.internal.rfid.RfidCardType
All Implemented Interfaces:
Serializable, Comparable<RfidCardType>, Constable

public enum RfidCardType extends Enum<RfidCardType>
Known RFID card types based on SAK detection
  • Enum Constant Details

    • NOT_COMPLETE

      public static final RfidCardType NOT_COMPLETE
    • MIFARE_MINI

      public static final RfidCardType MIFARE_MINI
    • MIFARE_CLASSIC_1K

      public static final RfidCardType MIFARE_CLASSIC_1K
    • MIFARE_CLASSIC_4K

      public static final RfidCardType MIFARE_CLASSIC_4K
    • MIFARE_ULTRALIGHT

      public static final RfidCardType MIFARE_ULTRALIGHT
    • MIFARE_PLUS_1

      public static final RfidCardType MIFARE_PLUS_1
    • MIFARE_PLUS_2

      public static final RfidCardType MIFARE_PLUS_2
    • TNP3XXX

      public static final RfidCardType TNP3XXX
    • ISO_14443_4

      public static final RfidCardType ISO_14443_4
    • ISO_18092

      public static final RfidCardType ISO_18092
  • Method Details

    • values

      public static RfidCardType[] 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 RfidCardType 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
    • getSak

      public byte getSak()
    • fromSak

      public static RfidCardType fromSak(byte sak)
      Returns the detected card type based on SAK.
      Parameters:
      sak - SAK byte to be analyzed
      Returns:
      Detected card type
      Throws:
      IllegalArgumentException - Unknown SAK byte