Class SoftTASigner
- java.lang.Object
-
- de.cardcontact.opencard.eac.softTA.SoftTASigner
-
- All Implemented Interfaces:
TerminalAuthenticationSigner
public class SoftTASigner extends java.lang.Object implements TerminalAuthenticationSigner
-
-
Constructor Summary
Constructors Constructor Description SoftTASigner(java.lang.String cspath, java.lang.String signerpath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[][]
getCertificateChain(java.lang.String keyCAR)
Return a list of Card Verifiable Certificates, starting with the certificate that can verified by the public key referenced in parameter keyCAR and ending with the certificate that is issued to the terminal authentication signer in use.byte[]
getTASignature(byte[] dataTBS, java.lang.String keyCHR)
Calculate a signature over the data to be signed using the terminal authentication key identified by keyCHR.
-
-
-
Method Detail
-
getCertificateChain
public byte[][] getCertificateChain(java.lang.String keyCAR)
Description copied from interface:TerminalAuthenticationSigner
Return a list of Card Verifiable Certificates, starting with the certificate that can verified by the public key referenced in parameter keyCAR and ending with the certificate that is issued to the terminal authentication signer in use.- Specified by:
getCertificateChain
in interfaceTerminalAuthenticationSigner
- Parameters:
keyCAR
- the Certificate Holder Reference (CAR) of the public key in the card that can be directly used to verify a certificate. This is typically a root or link certificate or a DVCA certificate that was already verified by the card.- Returns:
- the list of CVCs.
-
getTASignature
public byte[] getTASignature(byte[] dataTBS, java.lang.String keyCHR)
Description copied from interface:TerminalAuthenticationSigner
Calculate a signature over the data to be signed using the terminal authentication key identified by keyCHR. The signature must be return in a format suitable for presentation to the card, i.e. in R|S format for ECDSA. The hash algorithm is determined by the terminal authentication signer.- Specified by:
getTASignature
in interfaceTerminalAuthenticationSigner
- Parameters:
dataTBS
- the input for the hash and the signature operationkeyCHR
- the terminal authentication key- Returns:
- the signature
-
-