|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.scuba.smartcards.APDUFingerprint
public class APDUFingerprint
Fingerprint data structure. Basically maps commands to response codes (status words).
Under construction! Reads and parses files in basedir/fingerprintfiles
formatted with filestructures of Henning.
TODO: We should think of some other fileformat: Henning's format is based on
toString() of javax.smartcardio.*APDU classes,
not under our control.
TODO: For long term: maybe turn this into some CardType-like system similar to OCF?
| Constructor Summary | |
|---|---|
APDUFingerprint()
Constructs an empty fingerprint. |
|
APDUFingerprint(CardService service)
Constructs a fingerprint by sending some APDUs to the card connected to service. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Properties |
guessProperties()
Produces some string that identifies this card. |
int |
hashCode()
|
void |
put(CommandAPDU capdu,
ResponseAPDU rapdu)
Adds a command-response pair to this fingerprint. |
void |
put(CommandAPDU capdu,
short sw)
Adds a command-response pair to this fingerprint. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public APDUFingerprint()
public APDUFingerprint(CardService service)
service.
FIXME: only tested with PassportService, which selects the passportapplet when opened!
service - some card service| Method Detail |
|---|
public void put(CommandAPDU capdu,
ResponseAPDU rapdu)
capdu - commandrapdu - response
public void put(CommandAPDU capdu,
short sw)
capdu - command apdusw - responsepublic Properties guessProperties()
guessProperties in interface CardFingerprintpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||