public abstract class AbstractSmartCard
extends java.lang.Object
This class should be extended for the management of specific card.
Nevertheless it gives access to the generic parameters common to all cards which are:
Modifier | Constructor and Description |
---|---|
protected |
AbstractSmartCard(CardSelectionResponse cardSelectionResponse)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAtrBytes()
Gets the ATR
|
byte[] |
getFciBytes()
Gets the FCI
|
boolean |
hasAtr()
Tells if the card provided an ATR
|
boolean |
hasFci()
Tells if the card provided a FCI
|
protected AbstractSmartCard(CardSelectionResponse cardSelectionResponse)
cardSelectionResponse
- the response from the cardpublic boolean hasFci()
public boolean hasAtr()
public byte[] getFciBytes()
java.lang.IllegalStateException
- if no FCI is available (see hasFci)public byte[] getAtrBytes()
java.lang.IllegalStateException
- if no ATR is available (see hasAtr)