Class SoftTASigner

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoftTASigner

        public SoftTASigner​(java.lang.String cspath,
                            java.lang.String signerpath)
    • 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 interface TerminalAuthenticationSigner
        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 interface TerminalAuthenticationSigner
        Parameters:
        dataTBS - the input for the hash and the signature operation
        keyCHR - the terminal authentication key
        Returns:
        the signature