Home Reference Source
import KeyTransRecipientInfo from 'pkijs/src/KeyTransRecipientInfo.js'
public class | source

KeyTransRecipientInfo

Class from RFC5652

Static Method Summary

Static Public Methods
public static

compareWithDefault(memberName: string, memberValue: *): boolean

Compare values with default values for all class members

public static

defaultValues(memberName: string): *

Return default values for all class members

public static

schema(parameters: Object): Object

Return value of asn1js schema for current class

Constructor Summary

Public Constructor
public

constructor(parameters: Object)

Constructor for KeyTransRecipientInfo class

Member Summary

Public Members
public

encryptedKey: OctetString

encryptedKey

public

keyEncryptionAlgorithm

public

recipientCertificate For some reasons we need to store recipient's certificate here

public

rid

public

version

Method Summary

Public Methods
public

fromSchema(schema: Object)

Convert parsed asn1js object into current class

public

Convertion for the class to JSON object

public

Convert current object to asn1js object and set correct values

Static Public Methods

public static compareWithDefault(memberName: string, memberValue: *): boolean source

Compare values with default values for all class members

Params:

NameTypeAttributeDescription
memberName string

String name for a class member

memberValue *

Value to compare with default value

Return:

boolean

public static defaultValues(memberName: string): * source

Return default values for all class members

Params:

NameTypeAttributeDescription
memberName string

String name for a class member

Return:

*

public static schema(parameters: Object): Object source

Return value of asn1js schema for current class

Params:

NameTypeAttributeDescription
parameters Object

Input parameters for the schema

Return:

Object

asn1js schema object

Public Constructors

public constructor(parameters: Object) source

Constructor for KeyTransRecipientInfo class

Params:

NameTypeAttributeDescription
parameters Object
  • optional
  • default: {}
parameters.schema Object
  • optional

asn1js parsed value to initialize the class from

Public Members

public encryptedKey: OctetString source

encryptedKey

public keyEncryptionAlgorithm: AlgorithmIdentifier source

keyEncryptionAlgorithm

public recipientCertificate: Certificate source

recipientCertificate For some reasons we need to store recipient's certificate here

public rid: RecipientIdentifier source

rid

public version: number source

version

Public Methods

public fromSchema(schema: Object) source

Convert parsed asn1js object into current class

Params:

NameTypeAttributeDescription
schema Object
  • nullable: false

public toJSON(): Object source

Convertion for the class to JSON object

Return:

Object

public toSchema(): Object source

Convert current object to asn1js object and set correct values

Return:

Object

asn1js object