Enum Class PcscReader.DisconnectionMode

java.lang.Object
java.lang.Enum<PcscReader.DisconnectionMode>
org.eclipse.keyple.plugin.pcsc.PcscReader.DisconnectionMode
All Implemented Interfaces:
Serializable, Comparable<PcscReader.DisconnectionMode>, Constable
Enclosing interface:
PcscReader

public static enum PcscReader.DisconnectionMode extends Enum<PcscReader.DisconnectionMode>
Action to be taken after the card is disconnected.
Since:
2.0.0
  • Enum Constant Details

    • RESET

      public static final PcscReader.DisconnectionMode RESET
      Resets the card. This sends a reset signal to the card while keeping the connection alive.

      Corresponds to PC/SC `SCARD_RESET_CARD`.

      Since:
      2.0.0
    • LEAVE

      public static final PcscReader.DisconnectionMode LEAVE
      Leaves the card in its current state without performing any reset or power down.

      Corresponds to PC/SC `SCARD_LEAVE_CARD`.

      Since:
      2.0.0
    • UNPOWER

      public static final PcscReader.DisconnectionMode UNPOWER
      Completely powers off the card.

      Corresponds to PC/SC `SCARD_UNPOWER_CARD`.

      This mode is only available with the default security provider (jnasmartcardio/cna). Depending on the provider used, a runtime error may occur during reader enumeration.

      Since:
      2.5.0
    • EJECT

      public static final PcscReader.DisconnectionMode EJECT
      Ejects the card (if supported by the reader).

      Corresponds to PC/SC `SCARD_EJECT_CARD`.

      This mode is only available with the default security provider (jnasmartcardio/cna). Depending on the provider used, a runtime error may occur during reader enumeration.

      Since:
      2.5.0
  • Method Details

    • values

      public static PcscReader.DisconnectionMode[] 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 PcscReader.DisconnectionMode 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