Skip to content
PKIjsPKIjsPKIjsv4.0.1

AccessDescription

Represents the AccessDescription structure described in RFC5280

The authority information access extension indicates how to access information and services for the issuer of the certificate in which the extension appears. Information and services may include on-line validation services and CA policy data. This extension may be included in end entity or CA certificates. Conforming CAs MUST mark this extension as non-critical.

new AccessDescription(parameters?): AccessDescription

Initializes a new instance of the AccessDescription class

AccessDescriptionParameters = {}

Initialization parameters

AccessDescription

PkiObject.constructor

accessLocation: GeneralName

The accessLocation field specifies the location of the information

IAccessDescription.accessLocation


accessMethod: string

The type and format of the information are specified by the accessMethod field. This profile defines two accessMethod OIDs: id-ad-caIssuers and id-ad-ocsp

IAccessDescription.accessMethod


static CLASS_NAME: string = "AccessDescription"

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

Converts the class to JSON object

AccessDescriptionJson

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 defaultValues(memberName): string

Returns default values for all class members

"accessMethod"

String name for a class member

string

Default value

PkiObject.defaultValues

static defaultValues(memberName): GeneralName

Returns default values for all class members

"accessLocation"

String name for a class member

GeneralName

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?): Sequence

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

SchemaParameters<{ accessLocation?: GeneralNameSchema; accessMethod?: string; }> = {}

Input parameters for the schema

Sequence

ASN.1 schema object

PkiObject.schema