Interface SmartCard
-
public interface SmartCard
Generic smart card with which communication has been established after a selection process and which is ready to receive APDUs.The information that could be collected by the selection process, i.e. the power-on data and the response to the select application command (FCI) are made available.
Both are optional but cannot be null at the same time.Must be implemented and possibly extended by a card extension to meet its specific needs.
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPowerOnData()
Gets the card's power-on data.byte[]
getSelectApplicationResponse()
Gets the card data received in response to the Select Application command (including the status word).
-
-
-
Method Detail
-
getPowerOnData
java.lang.String getPowerOnData()
Gets the card's power-on data.The power-on data is defined as the data retrieved by the reader when the card is inserted.
In the case of a contact reader, this is the Answer To Reset data (ATR) defined by ISO7816.
In the case of a contactless reader, the reader decides what this data is.
Some contactless readers provide a virtual ATR (partially standardized by the PC/SC standard), but other devices can have their own definition, including for example elements from the anti-collision stage of the ISO14443 protocol (ATQA, ATQB, ATS, SAK, etc) or any proprietary definitions.These data being variable from one reader to another, they are defined here in string format which can be either a hexadecimal string or any other relevant information.
- Returns:
- Null if no power-on data is available.
- Since:
- 1.0.0
-
getSelectApplicationResponse
byte[] getSelectApplicationResponse()
Gets the card data received in response to the Select Application command (including the status word).- Returns:
- Null if no selection application has been performed.
- Since:
- 1.0.0
-
-