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

    Class CertificateService

    Service for handling certificate-related operations in the Ti365 system. Provides functionality for reading, parsing, and verifying certificates from cards.

    Index

    Methods

    • Parses a Telematik ID from a raw certificate.

      Parameters

      • raw: string | BufferSource

        The raw certificate data as a BufferSource or string

      Returns undefined | string

      The Telematik ID if found in the certificate, undefined otherwise

    • Verifies a certificate using the connector. Supports multiple certificate formats including DER, PEM, HEX, Base64, and Base64Url.

      Parameters

      • raw: string | BufferSource

        The raw certificate data as a string or BufferSource

      Returns Promise<VerificationStatus>

      A Promise that resolves to the certificate verification status

    • Reads certificates from a card with automatic certificate reference selection based on card type. If no certificate references are provided, they will be determined based on the card type.

      Parameters

      • card: Card

        The card to read certificates from

      • OptionalcertRefs: CertRefEnum[]

        Optional array of certificate references to read

      • crypt: CryptTypeEnum = CryptTypeEnum.RSA

        The cryptographic type to use (defaults to RSA)

      Returns Promise<X509DataInfo[]>

      A Promise that resolves to an array of certificate information

      Error if certificate references cannot be determined for the card type

    • Reads certificate information from a card using its handle.

      Parameters

      • cardhandle: string

        The handle of the card to read certificates from

      • certRefs: CertRefEnum[]

        Array of certificate references to read

      • crypt: CryptTypeEnum = CryptTypeEnum.RSA

        The cryptographic type to use (defaults to RSA)

      Returns Promise<X509DataInfo[]>

      A Promise that resolves to an array of certificate information

    • Reads certificates from a card and extracts the Telematik ID if present.

      Parameters

      • card: Card

        The card to read certificates from

      • certRefs: CertRefEnum[]

        Array of certificate references to read

      Returns Promise<undefined | string>

      A Promise that resolves to the Telematik ID if found, undefined otherwise