Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrivateKeyInfo

Represents the PrivateKeyInfo structure described in RFC5280

Hierarchy

Implements

Index

Constructors

Properties

attributes?: Attribute[]
privateKey: OctetString
privateKeyAlgorithm: AlgorithmIdentifier
version: number
CLASS_NAME: string = "PrivateKeyInfo"

Name of the class

Accessors

  • get className(): string

Methods

  • fromJSON(json: any): void
  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • defaultValues(memberName: string): 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

    PrivateKeyInfo ::= SEQUENCE {
       version Version,
       privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}},
       privateKey PrivateKey,
       attributes [0] Attributes OPTIONAL }
    
    Version ::= INTEGER {v1(0)} (v1,...)
    
    PrivateKey ::= OCTET STRING
    
    Attributes ::= SET OF Attribute
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc