public static enum PcscReader.SharingMode extends java.lang.Enum<PcscReader.SharingMode>
Corresponds to the beginExclusive() and endExclusive() methods of smartcard.io and, at a lower level, to the connection mode defined by PC/SC and used in the SCardConnect function.
| Enum Constant and Description |
|---|
EXCLUSIVE
Requests exclusive access to the card
|
SHARED
Allows simultaneous access to the card
|
| Modifier and Type | Method and Description |
|---|---|
static PcscReader.SharingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PcscReader.SharingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PcscReader.SharingMode SHARED
public static final PcscReader.SharingMode EXCLUSIVE
public static PcscReader.SharingMode[] values()
for (PcscReader.SharingMode c : PcscReader.SharingMode.values()) System.out.println(c);
public static PcscReader.SharingMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null