Skip to content
PKIjsPKIjsPKIjsv4.0.1

RecipientKeyIdentifier

Represents the RecipientKeyIdentifier structure described in RFC5652

new RecipientKeyIdentifier(parameters?): RecipientKeyIdentifier

Initializes a new instance of the RecipientKeyIdentifier class

RecipientKeyIdentifierParameters = {}

Initialization parameters

RecipientKeyIdentifier

PkiObject.constructor

optional date?: GeneralizedTime

IRecipientKeyIdentifier.date


optional other?: OtherKeyAttribute

IRecipientKeyIdentifier.other


subjectKeyIdentifier: OctetString

IRecipientKeyIdentifier.subjectKeyIdentifier


static CLASS_NAME: string = "RecipientKeyIdentifier"

Name of the class

PkiObject.CLASS_NAME

get className(): string

string

PkiObject.className

fromSchema(schema): void

Converts parsed ASN.1 object into current class

any

ASN.1 schema

void

PkiObject.fromSchema


toJSON(): RecipientKeyIdentifierJson

Converts the class to JSON object

RecipientKeyIdentifierJson

JSON object

PkiObject.toJSON


toSchema(): Sequence

Converts current object to ASN.1 object and sets correct values

Sequence

ASN.1 object

PkiObject.toSchema


toString(encoding?): string

"hex" | "base64" | "base64url" = "hex"

string

PkiObject.toString


static blockName(): string

Returns block name

string

Returns string block name

PkiObject.blockName


static compareWithDefault(memberName, memberValue): boolean

Compare values with default values for all class members

string

String name for a class member

any

Value to compare with default value

boolean


static defaultValues(memberName): OctetString

Returns default values for all class members

"subjectKeyIdentifier"

String name for a class member

OctetString

Default value

PkiObject.defaultValues

static defaultValues(memberName): GeneralizedTime

Returns default values for all class members

"date"

String name for a class member

GeneralizedTime

Default value

PkiObject.defaultValues

static defaultValues(memberName): OtherKeyAttribute

Returns default values for all class members

"other"

String name for a class member

OtherKeyAttribute

Default value

PkiObject.defaultValues


static fromBER<T>(this, raw): T

Creates PKI object from the raw data

T extends PkiObject

PkiObjectConstructor<T>

BufferSource

ASN.1 encoded raw data

T

Initialized and filled current class object

PkiObject.fromBER


static schema(parameters?): any

Returns value of pre-defined ASN.1 schema for current class

RecipientKeyIdentifierSchema = {}

Input parameters for the schema

any

ASN.1 schema object

PkiObject.schema