public class CAProtocol extends Object
Modifier and Type | Class and Description |
---|---|
class |
CAProtocol.MyECDHKeyAgreement |
Constructor and Description |
---|
CAProtocol(PassportService service,
SecureMessagingWrapper wrapper)
Constructs a protocol instance.
|
Modifier and Type | Method and Description |
---|---|
CAResult |
doCA(BigInteger keyId,
String oid,
PublicKey piccPublicKey)
Perform CA (Chip Authentication) part of EAC (version 1).
|
SecureMessagingWrapper |
getWrapper()
Gets the secure messaging wrapper currently in use.
|
public CAProtocol(PassportService service, SecureMessagingWrapper wrapper)
service
- the card servicewrapper
- the existing secure messaging wrapperpublic CAResult doCA(BigInteger keyId, String oid, PublicKey piccPublicKey) throws net.sf.scuba.smartcards.CardServiceException
keyId
- passport's public key id (stored in DG14), -1 if noneoid
- the object identifier indicating the Chip Authentication protocolpiccPublicKey
- PICC's public key (stored in DG14)net.sf.scuba.smartcards.CardServiceException
- if CA failed or some error occurredpublic SecureMessagingWrapper getWrapper()
Copyright © 2016. All rights reserved.