Skip to content
PKIjsPKIjsPKIjsv4.0.1

OriginatorInfo

Represents the OriginatorInfo structure described in RFC5652

new OriginatorInfo(parameters?): OriginatorInfo

Initializes a new instance of the CertificateSet class

OriginatorInfoParameters = {}

Initialization parameters

OriginatorInfo

PkiObject.constructor

optional certs?: CertificateSet

Collection of certificates. In may contain originator certificates associated with several different key management algorithms. It may also contain attribute certificates associated with the originator.

IOriginatorInfo.certs


optional crls?: RevocationInfoChoices

Collection of CRLs. It is intended that the set contain information sufficient to determine whether or not the certificates in the certs field are valid, but such correspondence is not necessary

IOriginatorInfo.crls


static CLASS_NAME: string = "OriginatorInfo"

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

Converts the class to JSON object

OriginatorInfoJson

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): CertificateSet

Returns default values for all class members

"certs"

String name for a class member

CertificateSet

Default value

PkiObject.defaultValues

static defaultValues(memberName): RevocationInfoChoices

Returns default values for all class members

"crls"

String name for a class member

RevocationInfoChoices

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

SchemaParameters<{ certs?: string; crls?: string; }> = {}

Input parameters for the schema

any

ASN.1 schema object

PkiObject.schema