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

KeyAgreeRecipientInfo

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 KeyAgreeRecipientInfo class

Member Summary

Public Members
public

keyEncryptionAlgorithm

public

originator

public

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

public

recipientEncryptedKeys

public

ukm: OctetString

ukm

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 KeyAgreeRecipientInfo class

Params:

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

asn1js parsed value to initialize the class from

Public Members

public keyEncryptionAlgorithm: AlgorithmIdentifier source

keyEncryptionAlgorithm

public originator: OriginatorIdentifierOrKey source

originator

public recipientCertificate: Certificate source

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

public recipientEncryptedKeys: RecipientEncryptedKeys source

recipientEncryptedKeys

public ukm: OctetString source

ukm

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