Skip to content
PKIjsPKIjsPKIjsv4.0.1

RelativeDistinguishedNames

Represents the RelativeDistinguishedNames structure described in RFC5280

new RelativeDistinguishedNames(parameters?): RelativeDistinguishedNames

Initializes a new instance of the RelativeDistinguishedNames class

RelativeDistinguishedNamesParameters = {}

Initialization parameters

RelativeDistinguishedNames

PkiObject.constructor

typesAndValues: AttributeTypeAndValue[]

Array of “type and value” objects

IRelativeDistinguishedNames.typesAndValues


valueBeforeDecode: ArrayBuffer

Value of the RDN before decoding from schema

IRelativeDistinguishedNames.valueBeforeDecode


static CLASS_NAME: string = "RelativeDistinguishedNames"

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


isEqual(compareTo): boolean

Compares two RDN values, or RDN with ArrayBuffer value

unknown

The value compare to current

boolean


toJSON(): RelativeDistinguishedNamesJson

Converts the class to JSON object

RelativeDistinguishedNamesJson

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

Compares 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): AttributeTypeAndValue[]

Returns default values for all class members

"typesAndValues"

String name for a class member

AttributeTypeAndValue[]

Default value

PkiObject.defaultValues

static defaultValues(memberName): ArrayBuffer

Returns default values for all class members

"valueBeforeDecode"

String name for a class member

ArrayBuffer

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

RelativeDistinguishedNamesSchema = {}

Input parameters for the schema

any

ASN.1 schema object

PkiObject.schema