Class PkiObjectAbstract

Hierarchy

Constructors

Properties

CLASS_NAME: string = "PkiObject"

Name of the class

Accessors

Methods

  • Converts parsed ASN.1 object into current class

    Parameters

    • schema: any

      ASN.1 schema

    Returns void

  • Converts the class to JSON object

    Returns

    JSON object

    Returns any

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

    Returns

    ASN.1 object

    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

  • Parameters

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

    Returns string

  • Returns block name

    Returns

    Returns string block name

    Returns string

  • Returns default values for all class members

    Returns

    Default value

    Parameters

    • memberName: string

      String name for a class member

    Returns any

  • Creates PKI object from the raw data

    Returns

    Initialized and filled current class object

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

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

    Returns

    ASN.1 schema object

    Parameters

    Returns any

Generated using TypeDoc