crypto-pro-actual-cades-plugin
Version:
API для взаимодействия с КриптоПро (актуальный файл cadesplugin_api.js)
24 lines (23 loc) • 1.03 kB
TypeScript
import { TagTranslation } from '../../helpers/_parseCertInfo';
import { AlgorithmInfo } from './getAlgorithm';
import { ExtendedKeysTranslations } from './getDecodedExtendedKeyUsage';
export declare type CadesCertificate = any;
export declare class Certificate {
_cadesCertificate: CadesCertificate;
name: string;
issuerName: string;
subjectName: string;
thumbprint: string;
validFrom: string;
validTo: string;
constructor(_cadesCertificate: CadesCertificate, name: string, issuerName: string, subjectName: string, thumbprint: string, validFrom: string, validTo: string);
getOwnerInfo(): Promise<TagTranslation[]>;
getIssuerInfo(): Promise<TagTranslation[]>;
getExtendedKeyUsage(): Promise<string[]>;
getDecodedExtendedKeyUsage(): Promise<ExtendedKeysTranslations>;
getAlgorithm(): Promise<AlgorithmInfo>;
getCadesProp(propName: any): Promise<any>;
isValid(): Promise<boolean>;
exportBase64(): Promise<string>;
hasExtendedKeyUsage(oids: any): Promise<boolean>;
}