public class SelectionStatus
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SelectionStatus(AnswerToReset atr,
ApduResponse fci,
boolean isMatching)
Create a Selection Status with the 3 required elements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
AnswerToReset |
getAtr()
Gets the ATR coming from the card.
|
ApduResponse |
getFci()
Gets the
ApduResponse from the card to the Selection Application command. |
int |
hashCode() |
boolean |
hasMatched()
Tells if the selection process has been successful.
|
public SelectionStatus(AnswerToReset atr, ApduResponse fci, boolean isMatching)
atr contains the ATR data from the card.fci contains the APDU response to the SELECT command sent to the card during
the selection process. The data part of this ApduResponse is the FCIisMatching is True if the selection was successful, false otherwise.
atr - A not null AnswerToReset reference.fci - A nullable ApduResponse reference.isMatching - A boolean.public AnswerToReset getAtr()
The ATR may not be available with certain types of readers, in this case this method returns null.
AnswerToReset.public ApduResponse getFci()
ApduResponse from the card to the Selection Application command.
The FCI is not available if the card has not been selected with an AID, in this case this method returns null.
ApduResponse.public boolean hasMatched()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object