xmldsigjs
Version:
XML Digital Signature implementation in TypeScript/JavaScript using Web Crypto API
43 lines (42 loc) • 1.23 kB
TypeScript
import { DataObjects } from './data_object.js';
import { KeyInfo } from './key_info.js';
import { SignedInfo } from './signed_info.js';
import { XmlSignatureObject } from './xml_object.js';
/**
* Represents the <Signature> element of an XML signature.
*
* ```xml
* <element name="Signature" type="ds:SignatureType"/>
* <complexType name="SignatureType">
* <sequence>
* <element ref="ds:SignedInfo"/>
* <element ref="ds:SignatureValue"/>
* <element ref="ds:KeyInfo" minOccurs="0"/>
* <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="Id" type="ID" use="optional"/>
* </complexType>
* ```
*/
/**
* Represents the <Signature> element of an XML signature.
*/
export declare class Signature extends XmlSignatureObject {
/**
* Gets or sets the ID of the current Signature.
*/
Id: string;
/**
* Gets or sets the SignedInfo of the current Signature.
*/
SignedInfo: SignedInfo;
/**
* Gets or sets the value of the digital signature.
*/
SignatureValue: Uint8Array | null;
/**
* Gets or sets the KeyInfo of the current Signature.
*/
KeyInfo: KeyInfo;
ObjectList: DataObjects;
}