Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Extension

Represents the Extension structure described in RFC5280

Hierarchy

Implements

Index

Constructors

Properties

critical: boolean
extnID: string
extnValue: OctetString
CLASS_NAME: string = "Extension"

Name of the class

Accessors

  • get className(): string
  • get parsedValue(): any
  • set parsedValue(value: any): void

Methods

  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • defaultValues(memberName: "extnID"): string
  • defaultValues(memberName: "critical"): boolean
  • defaultValues(memberName: "extnValue"): OctetString
  • defaultValues(memberName: "parsedValue"): any
  • Returns default values for all class members

    Parameters

    • memberName: "extnID"

      String name for a class member

    Returns string

    Default value

  • Parameters

    • memberName: "critical"

    Returns boolean

  • Parameters

    • memberName: "extnValue"

    Returns OctetString

  • 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

    Extension ::= SEQUENCE  {
       extnID      OBJECT IDENTIFIER,
       critical    BOOLEAN DEFAULT FALSE,
       extnValue   OCTET STRING
    }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc