public class CAProtocol extends Object
Constructor and Description |
---|
CAProtocol(PassportService service,
SecureMessagingWrapper wrapper) |
Modifier and Type | Method and Description |
---|---|
CAResult |
doCA(BigInteger keyId,
PublicKey publicKey)
Perform CA (Chip Authentication) part of EAC (version 1).
|
public CAProtocol(PassportService service, SecureMessagingWrapper wrapper)
public CAResult doCA(BigInteger keyId, PublicKey publicKey) throws net.sf.scuba.smartcards.CardServiceException
keyId
- passport's public key id (stored in DG14), -1 if nonepublicKey
- passport's public key (stored in DG14)net.sf.scuba.smartcards.CardServiceException
- if CA failed or some error occurredCopyright © 2016. All rights reserved.