Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PkiObject Abstract

Hierarchy

Index

Constructors

Properties

CLASS_NAME: string = "PkiObject"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • Converts parsed ASN.1 object into current class

    Parameters

    • schema: any

      ASN.1 schema

    Returns void

  • toJSON(): any
  • toSchema(encodeFlag?: boolean): any
  • Converts current object to ASN.1 object and sets correct values

    Parameters

    • Optional encodeFlag: boolean

      If param equal to false then creates schema via decoding stored value. In other case creates schema via assembling from cached parts

    Returns any

    ASN.1 object

  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • Parameters

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

    Returns string

  • blockName(): string
  • defaultValues(memberName: string): any
  • Returns default values for all class members

    Parameters

    • memberName: string

      String name for a class member

    Returns any

    Default value

  • 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

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc