Skip to content
PKIjsPKIjsPKIjsv4.0.1

KEKIdentifier

Represents the KEKIdentifier structure described in RFC5652

new KEKIdentifier(parameters?): KEKIdentifier

Initializes a new instance of the KEKIdentifier class

KEKIdentifierParameters = {}

Initialization parameters

KEKIdentifier

PkiObject.constructor

optional date?: GeneralizedTime

IKEKIdentifier.date


keyIdentifier: OctetString

IKEKIdentifier.keyIdentifier


optional other?: OtherKeyAttribute

IKEKIdentifier.other


static CLASS_NAME: string = "KEKIdentifier"

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(): KEKIdentifierJson

Converts the class to JSON object

KEKIdentifierJson

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

"keyIdentifier"

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

KEKIdentifierSchema = {}

Input parameters for the schema

any

ASN.1 schema object

PkiObject.schema