public enum SamRevision extends java.lang.Enum<SamRevision>
| Enum Constant and Description |
|---|
AUTO
Joker value matching any application type.
|
C1
The revision of C1 and S1E SAM.
|
S1D
The revision of S1D SAM SAM.
|
S1E
The revision of S1E SAM.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationTypeMask()
Get the application type mask.
|
byte |
getClassByte()
Gets the class byte.
|
java.lang.String |
getName()
Gets the revision name
|
static SamRevision |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SamRevision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamRevision C1
public static final SamRevision S1E
public static final SamRevision S1D
public static final SamRevision AUTO
Used as an argument in SamSelector.
The actual revision will be retrieved from the ATR historical bytes.
public static SamRevision[] values()
for (SamRevision c : SamRevision.values()) System.out.println(c);
public static SamRevision 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 nullpublic java.lang.String getName()
public java.lang.String getApplicationTypeMask()
This mask can be used as part of a regular expression in order to determine the SAM revision when applied to the application type byte in the SAM's ATR.
public byte getClassByte()