public interface APDULevelReadBinaryCapable
SELECT
and READ BINARY
(both SFI and non-SFI) commands.
The actual file system on an ICAO compliant chip supports this.Modifier and Type | Method and Description |
---|---|
byte[] |
sendReadBinary(net.sf.scuba.smartcards.APDUWrapper wrapper,
int sfi,
int offset,
int le,
boolean isSFIEnabled,
boolean isTLVEncodedOffsetNeeded)
Sends a
READ BINARY command to the passport. |
void |
sendSelectApplet(net.sf.scuba.smartcards.APDUWrapper wrapper,
byte[] aid)
Sends a
SELECT APPLET command to the card. |
void |
sendSelectFile(net.sf.scuba.smartcards.APDUWrapper wrapper,
short fid)
Selects a file by file identifier.
|
void sendSelectApplet(net.sf.scuba.smartcards.APDUWrapper wrapper, byte[] aid) throws net.sf.scuba.smartcards.CardServiceException
SELECT APPLET
command to the card.wrapper
- the secure messaging wrapper to useaid
- the applet to selectnet.sf.scuba.smartcards.CardServiceException
- on tranceive errorvoid sendSelectFile(net.sf.scuba.smartcards.APDUWrapper wrapper, short fid) throws net.sf.scuba.smartcards.CardServiceException
wrapper
- the APDU wrapper to usefid
- the file identifiernet.sf.scuba.smartcards.CardServiceException
- on errorbyte[] sendReadBinary(net.sf.scuba.smartcards.APDUWrapper wrapper, int sfi, int offset, int le, boolean isSFIEnabled, boolean isTLVEncodedOffsetNeeded) throws net.sf.scuba.smartcards.CardServiceException
READ BINARY
command to the passport.
Secure messaging will be applied to the command and response APDU.wrapper
- the secure messaging wrapper to use, or null
for nonesfi
- the short file identifier byte of the file to read as an int value (between 0 and 255)
only if isSFIEnabled
is true
, if not any value)offset
- offset into the file
(either a value between 0 and 255 if isSFIEnabled
holds,
or a value between 0 and 65535 if not)le
- the expected length of the file to readisSFIEnabled
- a boolean indicating whether short file identifiers are usedisTLVEncodedOffsetNeeded
- a boolean indicating whether it should be a long (INS == 0xB1
) readle
with (the specified part of) the contents of the currently selected filenet.sf.scuba.smartcards.CardServiceException
- if the command was not successfulCopyright © 2018. All rights reserved.