public class CAProtocol extends Object
Constructor and Description |
---|
CAProtocol(PassportService service,
SecureMessagingWrapper wrapper)
Constructs a protocol instance.
|
Modifier and Type | Method and Description |
---|---|
CAResult |
doCA(BigInteger keyId,
String oid,
String publicKeyOID,
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, String publicKeyOID, PublicKey piccPublicKey) throws net.sf.scuba.smartcards.CardServiceException
keyId
- passport's public key id (stored in DG14), null
if noneoid
- the object identifier indicating the Chip Authentication protocolpublicKeyOID
- the OID indicating the type of public keypiccPublicKey
- 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.