Class ECPublicKey

Represents the PrivateKeyInfo structure described in RFC5480

Hierarchy

Implements

Constructors

Properties

namedCurve: string
x: ArrayBuffer
y: ArrayBuffer
CLASS_NAME: string = "ECPublicKey"

Name of the class

Accessors

  • get className(): string
  • Returns string

Methods

  • Converts JSON value into current object

    Parameters

    • json: any

      JSON object

    Returns void

  • Converts parsed ASN.1 object into current class

    Parameters

    • schema1: BufferSource

      ASN.1 schema

    Returns any

  • Parameters

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

    Returns string

  • Compare values with default values for all class members

    Type Parameters

    • T

    Parameters

    • memberName: string

      String name for a class member

    • memberValue: T

      Value to compare with default value

    Returns memberValue is T

  • Returns default values for all class members

    Returns

    Default value

    Parameters

    • memberName: "namedCurve"

      String name for a class member

    Returns string

  • Parameters

    • memberName: "x" | "y"

    Returns ArrayBuffer

  • 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

Generated using TypeDoc