Skip to content
PKIjsPKIjsPKIjsv4.0.1

OtherKeyAttribute

Represents the OtherKeyAttribute structure described in RFC5652

new OtherKeyAttribute(parameters?): OtherKeyAttribute

Initializes a new instance of the OtherKeyAttribute class

OtherKeyAttributeParameters = {}

Initialization parameters

OtherKeyAttribute

PkiObject.constructor

optional keyAttr?: any

IOtherKeyAttribute.keyAttr


keyAttrId: string

IOtherKeyAttribute.keyAttrId


static CLASS_NAME: string = "OtherKeyAttribute"

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

Converts the class to JSON object

OtherKeyAttributeJson

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<T>(memberName, memberValue): memberValue is T

Compare values with default values for all class members

T extends object

string

String name for a class member

T

Value to compare with default value

memberValue is T


static defaultValues(memberName): string

Returns default values for all class members

"keyAttrId"

String name for a class member

string

Default value

PkiObject.defaultValues

static defaultValues(memberName): any

Returns default values for all class members

"keyAttr"

String name for a class member

any

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

any = {}

Input parameters for the schema

any

ASN.1 schema object

PkiObject.schema