public interface APDULevelPACECapable
Modifier and Type | Method and Description |
---|---|
byte[] |
sendGeneralAuthenticate(net.sf.scuba.smartcards.APDUWrapper wrapper,
byte[] data,
int le,
boolean isLast)
Sends a General Authenticate command.
|
void |
sendMSESetATMutualAuth(net.sf.scuba.smartcards.APDUWrapper wrapper,
String oid,
int refPublicKeyOrSecretKey,
byte[] refPrivateKeyOrForComputingSessionKey)
The MSE AT APDU for PACE, see ICAO TR-SAC-1.01, Section 3.2.1, BSI TR 03110 v2.03 B11.1.
|
void sendMSESetATMutualAuth(net.sf.scuba.smartcards.APDUWrapper wrapper, String oid, int refPublicKeyOrSecretKey, byte[] refPrivateKeyOrForComputingSessionKey) throws net.sf.scuba.smartcards.CardServiceException
wrapper
- secure messaging wrapperoid
- OID of the protocol to select (this method will prefix 0x80
)refPublicKeyOrSecretKey
- value specifying whether to use MRZ (0x01
) or CAN (0x02
) (this method will prefix 0x83
)refPrivateKeyOrForComputingSessionKey
- indicates a private key or reference for computing a session key (this method will prefix 0x84
)net.sf.scuba.smartcards.CardServiceException
- on errorbyte[] sendGeneralAuthenticate(net.sf.scuba.smartcards.APDUWrapper wrapper, byte[] data, int le, boolean isLast) throws net.sf.scuba.smartcards.CardServiceException
wrapper
- secure messaging wrapperdata
- data to be sent, without the 0x7C
prefix (this method will add it)le
- the length to requestisLast
- indicates whether this is the last command in the chain0x7C
prefix (this method will remove it)net.sf.scuba.smartcards.CardServiceException
- on errorCopyright © 2020. All rights reserved.