public class TAProtocol extends Object
Constructor and Description |
---|
TAProtocol(PassportService service,
SecureMessagingWrapper wrapper)
Creates a protocol instance.
|
Modifier and Type | Method and Description |
---|---|
TAResult |
doTA(CVCPrincipal caReference,
List<CardVerifiableCertificate> terminalCertificates,
PrivateKey terminalKey,
String taAlg,
CAResult chipAuthenticationResult,
byte[] idPICC)
Executes the Terminal Authentication protocol.
|
TAResult |
doTA(CVCPrincipal caReference,
List<CardVerifiableCertificate> terminalCertificates,
PrivateKey terminalKey,
String taAlg,
CAResult chipAuthenticationResult,
PACEResult paceResult)
Perform TA (Terminal Authentication) part of EAC (version 1).
|
TAResult |
doTA(CVCPrincipal caReference,
List<CardVerifiableCertificate> terminalCertificates,
PrivateKey terminalKey,
String taAlg,
CAResult chipAuthenticationResult,
String documentNumber)
Perform the EAC-TA (Terminal Authentication) part of EAC (version 1).
|
public TAProtocol(PassportService service, SecureMessagingWrapper wrapper)
service
- the card service for APDU communicationwrapper
- the secure messaging wrapperpublic TAResult doTA(CVCPrincipal caReference, List<CardVerifiableCertificate> terminalCertificates, PrivateKey terminalKey, String taAlg, CAResult chipAuthenticationResult, String documentNumber) throws CardServiceException
caReference
- a reference to the issuerterminalCertificates
- the terminal certificate chainterminalKey
- the terminal private keytaAlg
- the algorithmchipAuthenticationResult
- the chip authentication resultdocumentNumber
- the document number from which the chip key hash will be derivedCardServiceException
- on errorpublic TAResult doTA(CVCPrincipal caReference, List<CardVerifiableCertificate> terminalCertificates, PrivateKey terminalKey, String taAlg, CAResult chipAuthenticationResult, PACEResult paceResult) throws CardServiceException
caReference
- reference issuerterminalCertificates
- terminal certificate chainterminalKey
- terminal private keytaAlg
- the algorithmchipAuthenticationResult
- the chip authentication resultpaceResult
- the PACE result from which the chip key hash will be derivedCardServiceException
- on errorpublic TAResult doTA(CVCPrincipal caReference, List<CardVerifiableCertificate> terminalCertificates, PrivateKey terminalKey, String taAlg, CAResult chipAuthenticationResult, byte[] idPICC) throws CardServiceException
caReference
- the certificate authorityterminalCertificates
- the chain of certificates to sendterminalKey
- the inspection system's private keytaAlg
- the algorithmchipAuthenticationResult
- the result of the Chip Authentication protocol executionidPICC
- the chip identifierCardServiceException
- on errorCopyright © 2018. All rights reserved.