Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ECPublicKey

Represents the PrivateKeyInfo structure described in RFC5480

Hierarchy

Implements

Index

Constructors

Properties

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

Name of the class

Accessors

  • get className(): string

Methods

  • fromJSON(json: any): void
  • Converts JSON value into current object

    Parameters

    • json: any

      JSON object

    Returns void

  • fromSchema(schema1: BufferSource): any
  • toSchema(): RawData
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault<T>(memberName: string, memberValue: T): memberValue is T
  • 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

  • defaultValues(memberName: "namedCurve"): string
  • defaultValues(memberName: "x" | "y"): ArrayBuffer
  • Returns default values for all class members

    Parameters

    • memberName: "namedCurve"

      String name for a class member

    Returns string

    Default value

  • Parameters

    • memberName: "x" | "y"

    Returns ArrayBuffer

  • 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

  • schema(): any

Generated using TypeDoc