public class EACCAAPDUSender extends Object implements APDULevelEACCACapable
Constructor and Description |
---|
EACCAAPDUSender(net.sf.scuba.smartcards.CardService service)
Creates an APDU sender for the EAC-CA protocol.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
sendGeneralAuthenticate(net.sf.scuba.smartcards.APDUWrapper wrapper,
byte[] data,
boolean isLast)
Sends a General Authenticate command.
|
byte[] |
sendInternalAuthenticate(net.sf.scuba.smartcards.APDUWrapper wrapper,
byte[] rndIFD)
Sends an
INTERNAL AUTHENTICATE command to the passport. |
void |
sendMSEKAT(net.sf.scuba.smartcards.APDUWrapper wrapper,
byte[] keyData,
byte[] idData)
The MSE KAT APDU, see EAC 1.11 spec, Section B.1.
|
void |
sendMSESetATIntAuth(net.sf.scuba.smartcards.APDUWrapper wrapper,
String oid,
BigInteger keyId)
The MSE Set AT for Chip Authentication.
|
public EACCAAPDUSender(net.sf.scuba.smartcards.CardService service)
service
- the card service for tranceiving APDUspublic byte[] sendInternalAuthenticate(net.sf.scuba.smartcards.APDUWrapper wrapper, byte[] rndIFD) throws net.sf.scuba.smartcards.CardServiceException
INTERNAL AUTHENTICATE
command to the passport.
This is part of AA and possibly EAC-CA.sendInternalAuthenticate
in interface APDULevelEACCACapable
wrapper
- secure messaging wrapperrndIFD
- the challenge to sendnet.sf.scuba.smartcards.CardServiceException
- on tranceive errorpublic void sendMSEKAT(net.sf.scuba.smartcards.APDUWrapper wrapper, byte[] keyData, byte[] idData) throws net.sf.scuba.smartcards.CardServiceException
sendMSEKAT
in interface APDULevelEACCACapable
wrapper
- secure messaging wrapperkeyData
- key data object (tag 0x91)idData
- key id data object (tag 0x84), can be nullnet.sf.scuba.smartcards.CardServiceException
- on errorpublic void sendMSESetATIntAuth(net.sf.scuba.smartcards.APDUWrapper wrapper, String oid, BigInteger keyId) throws net.sf.scuba.smartcards.CardServiceException
sendMSESetATIntAuth
in interface APDULevelEACCACapable
wrapper
- secure messaging wrapperoid
- the OIDkeyId
- the keyId or null
net.sf.scuba.smartcards.CardServiceException
- on errorpublic byte[] sendGeneralAuthenticate(net.sf.scuba.smartcards.APDUWrapper wrapper, byte[] data, boolean isLast) throws net.sf.scuba.smartcards.CardServiceException
sendGeneralAuthenticate
in interface APDULevelEACCACapable
wrapper
- secure messaging wrapperdata
- data to be sent, without the 0x7C
prefix (this method will add it)isLast
- indicates whether this is the last command in the chain0x7C
prefix (this method will remove it)net.sf.scuba.smartcards.CardServiceException
- on errorCopyright © 2018. All rights reserved.