Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CertBag

Represents the CertBag structure described in RFC7292

Hierarchy

Implements

Index

Constructors

Properties

certId: string
certValue: OctetString | PkiObject
parsedValue: any
CLASS_NAME: string = "CertBag"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault(memberName: string, memberValue: any): boolean
  • Compare values with default values for all class members

    Parameters

    • memberName: string

      String name for a class member

    • memberValue: any

      Value to compare with default value

    Returns boolean

  • defaultValues(memberName: "certId"): string
  • defaultValues(memberName: "certValue"): any
  • defaultValues(memberName: "parsedValue"): any
  • Returns default values for all class members

    Parameters

    • memberName: "certId"

      String name for a class member

    Returns string

    Default value

  • Parameters

    • memberName: "certValue"

    Returns any

  • Parameters

    • memberName: "parsedValue"

    Returns any

  • 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

    CertBag ::= SEQUENCE {
       certId    BAG-TYPE.&id   ({CertTypes}),
       certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId})
    }
    

    Parameters

    • parameters: SchemaParameters<{ id?: string; value?: string }> = {}

      Input parameters for the schema

    Returns any

    ASN.1 schema object

Generated using TypeDoc