JavaScript HSM API Dinamo
    Preparing search index...

    XML Interface

    interface Xml {
        XMLSign(
            flags: XML_SIGN_FLAGS,
            keyId: string,
            certId: string,
            hashMode: HASH_MODE,
            xml: Buffer,
            filter: Buffer,
        ): Promise<Buffer<ArrayBufferLike>>;
        XMLVerify(
            flags: XML_SIGN_FLAGS,
            certsId: string,
            crlId: string | null,
            signedXml: Buffer,
            filter: Buffer,
        ): Promise<void>;
    }
    Index
    • Sign an XML document.

      Parameters

      • flags: XML_SIGN_FLAGS

        Control flags for the subscription operation.

      • keyId: string

        The identifier of the key to be used for the signature.

      • certId: string

        The identifier of the certificate to be used.

      • hashMode: HASH_MODE

        The hash and canonicalization mode.

      • xml: Buffer

        The XML document to be signed.

      • filter: Buffer

        The filter to be applied.

      Returns Promise<Buffer<ArrayBufferLike>>

      A promise that resolves with the signed XML.

    • Verifies a signed XML document.

      Parameters

      • flags: XML_SIGN_FLAGS

        Control indicators for the verification operation.

      • certsId: string

        The certificate chain identifier.

      • crlId: string | null

        The Revoked Certificates List identifier (optional).

      • signedXml: Buffer

        The signed XML file to be verified.

      • filter: Buffer

        The filter to be applied.

      Returns Promise<void>

      A promise that resolves if the verification is successful.