@yoshteq/ti365-ts-sdk
    Preparing search index...

    Class SignatureService

    Service allowing access to the SignatureService of the Connector. This allows to sign content with the cards in the connector and verify the correctness of a given signature.

    Index

    Methods

    • Signs the content of the given document with the smart card.

      Parameters

      • card: Card

        The card used for the signature.

      • documentToSign: Uint8Array

        The content to be singed.

      • cryptType: CryptType = CryptType.RSA_ECC

        Chooses the type of signature being used, default is RSA & ECC

      Returns Promise<Uint8Array>

      Returns a signature in the CMS Notation (rfc5652)

    • Signs the content of the given document with the smart card. Uses the default signature settings of the connector.

      Parameters

      • card: Card

        The card used for the signature.

      • documentToSignBase64: string

        The content to be singed as a base64 encoded string.

      • cryptType: CryptType = CryptType.RSA_ECC

        Chooses the type of signature being used, default is RSA & ECC

      Returns Promise<string>

      Returns a signature in the CMS Notation (rfc5652) as a base64 encoded string.

    • Signs the content of the given document with the smart card. Creates a enveloped CMS instead of a detached CMS.

      Parameters

      • card: Card

        The card used for the signature.

      • documentToSignBase64: string

        The content to be singed as a base64 encoded string.

      • cryptType: CryptType = CryptType.RSA_ECC

        Chooses the type of signature being used, default is RSA & ECC

      Returns Promise<string>

      Returns a signature in the CMS Notation (rfc5652) as a base64 encoded string.