Interface CommonIsoCardSelector<T extends CommonIsoCardSelector<T>>
- Type Parameters:
T
- The type of the lowest level child object.
- All Superinterfaces:
CardSelector<T>
- All Known Subinterfaces:
IsoCardSelector
These filters are all optional but can also be combined.
If no filtering is specified, any card that responds when inserted in the reader will be considered selected.
Conversely, if one or more filters have been defined, the card will not be selected if one of them rejects the card.
- Since:
- 2.0.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Types of templates available in return for the Select Application command, according to the ISO7816-4 standard.static enum
Navigation options through the different applications contained in the card according to the ISO7816-4 standard. -
Method Summary
Modifier and TypeMethodDescriptionfilterByDfName
(byte[] aid) Selects a card application DF by its name.filterByDfName
(String aid) Selects a card application DF by its name.setFileControlInformation
(CommonIsoCardSelector.FileControlInformation fileControlInformation) Sets the file control mode (see ISO7816-4).setFileOccurrence
(CommonIsoCardSelector.FileOccurrence fileOccurrence) Sets the file occurrence mode (see ISO7816-4).Methods inherited from interface org.eclipse.keypop.reader.selection.CardSelector
filterByCardProtocol, filterByPowerOnData
-
Method Details
-
filterByDfName
Selects a card application DF by its name.The DF is selected only if its name starts with the provided AID, as defined by ISO7816-4 chapter 4.2.
The provided AID will be used as a parameter of the "Selection Application" ISO card command.
- Parameters:
aid
- The AID as a byte array containing 5 to 16 bytes.- Returns:
- The current instance.
- Throws:
IllegalArgumentException
- If the provided array is null or out of range.- Since:
- 2.0.0
-
filterByDfName
Selects a card application DF by its name.The DF is selected only if its name starts with the provided AID, as defined by ISO7816-4 chapter 4.2.
The provided AID will be used as a parameter of the "Selection Application" ISO card command.
- Parameters:
aid
- The AID as a hexadecimal string of 5 to 16 bytes.- Returns:
- The current instance.
- Throws:
IllegalArgumentException
- If the provided string is null, invalid or out of range.- Since:
- 2.0.0
-
setFileOccurrence
Sets the file occurrence mode (see ISO7816-4).The default value is
CommonIsoCardSelector.FileOccurrence.FIRST
.- Parameters:
fileOccurrence
- TheCommonIsoCardSelector.FileOccurrence
.- Returns:
- The current instance.
- Throws:
IllegalArgumentException
- If fileOccurrence is null.- Since:
- 2.0.0
-
setFileControlInformation
Sets the file control mode (see ISO7816-4).The default value is
CommonIsoCardSelector.FileControlInformation.FCI
.- Parameters:
fileControlInformation
- TheCommonIsoCardSelector.FileControlInformation
.- Returns:
- The current instance.
- Throws:
IllegalArgumentException
- If fileControlInformation is null.- Since:
- 2.0.0
-