@smartdcc/duis-sign-wrap
Version:
Wrapper library for signing/validating DUIS
25 lines • 670 B
TypeScript
export interface SignOptions {
/**
* Unsigned DUIS xml string
*/
xml: string | Buffer;
/**
* Preserve counter value in RequestID when signing
*/
preserveCounter?: boolean;
/**
* Http server backend
*/
backend?: boolean | URL;
/**
* Http headers to pass to backend
*/
headers?: Record<string, string>;
/**
* Override the location of the xmldsig jar file, used for testing.
*/
jarFile?: string;
}
export declare function signDuis(options: SignOptions): Promise<string>;
export declare function validateDuis(options: SignOptions): Promise<string>;
//# sourceMappingURL=index.d.ts.map