Package org.eclipse.keyple.plugin.pcsc
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
Action to be taken after the card is disconnected.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PcscReader.DisconnectionMode
Returns the enum constant of this class with the specified name.static PcscReader.DisconnectionMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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
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 nameNullPointerException
- if the argument is null
-