Package org.eclipse.keyple.plugin.pcsc
Enum PcscReader.IsoProtocol
- java.lang.Object
-
- java.lang.Enum<PcscReader.IsoProtocol>
-
- org.eclipse.keyple.plugin.pcsc.PcscReader.IsoProtocol
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PcscReader.IsoProtocol>
- Enclosing interface:
- PcscReader
public static enum PcscReader.IsoProtocol extends java.lang.Enum<PcscReader.IsoProtocol>
Available transmission protocols as defined by the PC/SC standard.- Since:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
Gets the string expected by smartcard.io / PC/SC to set the card transmission protocol.static PcscReader.IsoProtocol
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PcscReader.IsoProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final PcscReader.IsoProtocol ANY
to connect using any available protocol- Since:
- 2.0.0
-
T0
public static final PcscReader.IsoProtocol T0
to connect using T=0 protocol- Since:
- 2.0.0
-
T1
public static final PcscReader.IsoProtocol T1
to connect using T=1 protocol- Since:
- 2.0.0
-
TCL
public static final PcscReader.IsoProtocol TCL
to connect using T=CL protocol- Since:
- 2.0.0
-
-
Method Detail
-
values
public static PcscReader.IsoProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PcscReader.IsoProtocol c : PcscReader.IsoProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PcscReader.IsoProtocol valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
Gets the string expected by smartcard.io / PC/SC to set the card transmission protocol.- Returns:
- A not empty string.
- Since:
- 2.0.0
-
-