SignedData
Class from RFC5652
Static Method Summary
Static Public Methods | ||
public static |
compareWithDefault(memberName: string, memberValue: *): * Compare values with default values for all class members |
|
public static |
defaultValues(memberName: string): *[] Return default values for all class members |
|
public static |
Return value of asn1js schema for current class |
Constructor Summary
Public Constructor | ||
public |
constructor(parameters: Object) Constructor for SignedData class |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
fromSchema(schema: Object) Convert parsed asn1js object into current class |
|
public |
sign(privateKey: key, signerIndex: number, hashAlgorithm: string, data: ArrayBuffer): * Signing current SignedData |
|
public |
Convertion for the class to JSON object |
|
public |
Convert current object to asn1js object and set correct values |
|
public |
verify(signer: *, data: *, trustedCerts: *, checkDate: *, checkChain: *, includeSignerCertificate: *, extendedMode: *, findOrigin: *, findIssuer: *): * Verify current SignedData value |
Static Public Methods
public static compareWithDefault(memberName: string, memberValue: *): * source
Compare values with default values for all class members
Params:
Name | Type | Attribute | Description |
memberName | string | String name for a class member |
|
memberValue | * | Value to compare with default value |
Return:
* |
Public Constructors
Public Members
public certificates: Array<Certificate|OtherCertificateFormat> source
public crls: Array<CertificateRevocationList|OtherRevocationInfoFormat> source
public digestAlgorithms: Array<AlgorithmIdentifier> source
public encapContentInfo: EncapsulatedContentInfo source
public ocsps: Array<BasicOCSPResponse> source
public signerInfos: Array<SignerInfo> source
Public Methods
public fromSchema(schema: Object) source
Convert parsed asn1js object into current class
Params:
Name | Type | Attribute | Description |
schema | Object |
|
public sign(privateKey: key, signerIndex: number, hashAlgorithm: string, data: ArrayBuffer): * source
Signing current SignedData
Params:
Name | Type | Attribute | Description |
privateKey | key | Private key for "subjectPublicKeyInfo" structure |
|
signerIndex | number | Index number (starting from 0) of signer index to make signature for |
|
hashAlgorithm | string |
|
Hashing algorithm. Default SHA-1 |
data | ArrayBuffer |
|
Detached data |
Return:
* |
public toSchema(encodeFlag: boolean): Object source
Convert current object to asn1js object and set correct values
Params:
Name | Type | Attribute | Description |
encodeFlag | boolean |
|
public verify(signer: *, data: *, trustedCerts: *, checkDate: *, checkChain: *, includeSignerCertificate: *, extendedMode: *, findOrigin: *, findIssuer: *): * source
Verify current SignedData value
Params:
Name | Type | Attribute | Description |
signer | * | ||
data | * | ||
trustedCerts | * | ||
checkDate | * | ||
checkChain | * | ||
includeSignerCertificate | * | ||
extendedMode | * | ||
findOrigin | * | ||
findIssuer | * |
Return:
* |