Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeCertificateInfoV1

Represents the AttributeCertificateInfoV1 structure described in RFC5755

Hierarchy

Implements

Index

Constructors

Properties

attrCertValidityPeriod: AttCertValidityPeriod

Specifies the period for which the AC issuer certifies that the binding between the holder and the attributes fields will be valid

attributes: Attribute[]

The attributes field gives information about the AC holder

baseCertificateID?: IssuerSerial
extensions?: Extensions

The extensions field generally gives information about the AC as opposed to information about the AC holder

issuer: GeneralNames
issuerUniqueID?: BitString

Issuer unique identifier

serialNumber: Integer

Contains the algorithm identifier used to validate the AC signature

subjectName?: GeneralNames
version: number

The version field MUST have the value of v2

CLASS_NAME: string = "AttributeCertificateInfoV1"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • defaultValues(memberName: "version"): number
  • defaultValues(memberName: "baseCertificateID"): IssuerSerial
  • defaultValues(memberName: "subjectName"): GeneralNames
  • defaultValues(memberName: "issuer"): GeneralNames
  • defaultValues(memberName: "signature"): AlgorithmIdentifier
  • defaultValues(memberName: "serialNumber"): Integer
  • defaultValues(memberName: "attrCertValidityPeriod"): AttCertValidityPeriod
  • defaultValues(memberName: "attributes"): Attribute[]
  • defaultValues(memberName: "issuerUniqueID"): BitString
  • defaultValues(memberName: "extensions"): Extensions
  • fromBER<T>(this: PkiObjectConstructor<T>, raw: BufferSource): T
  • Creates PKI object from the raw data

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

    Initialized and filled current class object

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

    asn

    ASN.1 schema

    AttributeCertificateInfo ::= SEQUENCE {
      version Version DEFAULT v1,
      subject CHOICE {
        baseCertificateID [0] IssuerSerial, -- associated with a Public Key Certificate
        subjectName [1] GeneralNames }, -- associated with a name
      issuer GeneralNames, -- CA issuing the attribute certificate
      signature AlgorithmIdentifier,
      serialNumber CertificateSerialNumber,
      attrCertValidityPeriod AttCertValidityPeriod,
      attributes SEQUENCE OF Attribute,
      issuerUniqueID UniqueIdentifier OPTIONAL,
      extensions Extensions OPTIONAL
    }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc