Skip to main content

AttributeCertificateInfoV2

Represents the AttributeCertificateInfoV2 structure described in RFC5755

Extends

Implements

Constructors

new AttributeCertificateInfoV2()

new AttributeCertificateInfoV2(parameters): AttributeCertificateInfoV2

Initializes a new instance of the AttributeCertificateInfoV2 class

Parameters

parameters: AttributeCertificateInfoV2Parameters = {}

Initialization parameters

Returns

AttributeCertificateInfoV2

Overrides

PkiObject.constructor

Properties

attrCertValidityPeriod

attrCertValidityPeriod: AttCertValidityPeriod

Implementation of

IAttributeCertificateInfoV2.attrCertValidityPeriod


attributes

attributes: Attribute[]

Implementation of

IAttributeCertificateInfoV2.attributes


extensions?

optional extensions: Extensions

Implementation of

IAttributeCertificateInfoV2.extensions


holder

holder: Holder

Implementation of

IAttributeCertificateInfoV2.holder


issuer

issuer: GeneralNames | V2Form

Implementation of

IAttributeCertificateInfoV2.issuer


issuerUniqueID?

optional issuerUniqueID: BitString

Implementation of

IAttributeCertificateInfoV2.issuerUniqueID


serialNumber

serialNumber: Integer

Implementation of

IAttributeCertificateInfoV2.serialNumber


signature

signature: AlgorithmIdentifier

Implementation of

IAttributeCertificateInfoV2.signature


version

version: number

Implementation of

IAttributeCertificateInfoV2.version


CLASS_NAME

static CLASS_NAME: string = "AttributeCertificateInfoV2"

Name of the class

Overrides

PkiObject.CLASS_NAME

Accessors

className

get className(): string

Returns

string

Inherited from

PkiObject.className

Methods

fromSchema()

fromSchema(schema): void

Converts parsed ASN.1 object into current class

Parameters

schema: any

ASN.1 schema

Returns

void

Overrides

PkiObject.fromSchema


toJSON()

toJSON(): AttributeCertificateInfoV2Json

Converts the class to JSON object

Returns

AttributeCertificateInfoV2Json

JSON object

Overrides

PkiObject.toJSON


toSchema()

toSchema(): Sequence

Converts current object to ASN.1 object and sets correct values

Returns

Sequence

ASN.1 object

Overrides

PkiObject.toSchema


toString()

toString(encoding): string

Parameters

encoding: "base64" | "base64url" | "hex" = "hex"

Returns

string

Inherited from

PkiObject.toString


blockName()

static blockName(): string

Returns block name

Returns

string

Returns string block name

Inherited from

PkiObject.blockName


defaultValues()

defaultValues(memberName)

static defaultValues(memberName): number

Returns default values for all class members

Parameters

memberName: "version"

String name for a class member

Returns

number

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): Holder

Returns default values for all class members

Parameters

memberName: "holder"

String name for a class member

Returns

Holder

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): GeneralNames | V2Form

Returns default values for all class members

Parameters

memberName: "issuer"

String name for a class member

Returns

GeneralNames | V2Form

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): AlgorithmIdentifier

Returns default values for all class members

Parameters

memberName: "signature"

String name for a class member

Returns

AlgorithmIdentifier

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): Integer

Returns default values for all class members

Parameters

memberName: "serialNumber"

String name for a class member

Returns

Integer

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): AttCertValidityPeriod

Returns default values for all class members

Parameters

memberName: "attrCertValidityPeriod"

String name for a class member

Returns

AttCertValidityPeriod

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): Attribute[]

Returns default values for all class members

Parameters

memberName: "attributes"

String name for a class member

Returns

Attribute[]

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): BitString

Returns default values for all class members

Parameters

memberName: "issuerUniqueID"

String name for a class member

Returns

BitString

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): Extensions

Returns default values for all class members

Parameters

memberName: "extensions"

String name for a class member

Returns

Extensions

Default value

Overrides

PkiObject.defaultValues


fromBER()

static fromBER<T>(this, raw): T

Creates PKI object from the raw data

Type Parameters

T extends PkiObject

Parameters

this: PkiObjectConstructor<T>

raw: BufferSource

ASN.1 encoded raw data

Returns

T

Initialized and filled current class object

Inherited from

PkiObject.fromBER


schema()

static schema(parameters): any

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

Parameters

parameters: AttributeCertificateInfoV2Schema = {}

Input parameters for the schema

Returns

any

ASN.1 schema object

Overrides

PkiObject.schema