public final class CardSelectionRequest
extends java.lang.Object
implements java.io.Serializable
CardSelector and a CardRequest, is used to define a
selection case.
The CardSelector is used to select a particular smart card, the optinal CardRequest contains additional commands to be sent to the card when the selection is
successful.
The CardSelector and CardRequest must be carefully defined in order to send the
right commands to the right card during the selection process.
Can be used in conjunction with the default selection process to optimize the start of a
ticketing process.
CardSelectionResponse,
Serialized Form| Constructor and Description |
|---|
CardSelectionRequest(CardSelector cardSelector)
Constructor.
|
CardSelectionRequest(CardSelector cardSelector,
CardRequest cardRequest)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CardRequest |
getCardRequest()
Gets the
CardRequest |
CardSelector |
getCardSelector()
Gets the
CardSelector |
java.lang.String |
toString() |
public CardSelectionRequest(CardSelector cardSelector)
Builds a request to open a logical channel without sending additional APDUs.
The cardRequest field is set to null.
cardSelector - a not null CardSelectorpublic CardSelectionRequest(CardSelector cardSelector, CardRequest cardRequest)
Builds a request to open a logical channel and send additional APDUs.
cardSelector - a not null CardSelectorcardRequest - a not empty CardRequestpublic CardSelector getCardSelector()
CardSelectorCardSelectorpublic CardRequest getCardRequest()
CardRequestCardRequest or null if it has not been definedpublic java.lang.String toString()
toString in class java.lang.Object