Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PFX

Represents the PFX structure described in RFC7292

Hierarchy

Implements

Index

Constructors

Properties

authSafe: ContentInfo
macData?: MacData
parsedValue?: PFXParsedValue
version: number
CLASS_NAME: string = "PFX"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • parseInternalValues(parameters: { checkIntegrity?: boolean; password?: ArrayBuffer }, crypto?: ICryptoEngine): Promise<void>
  • Parameters

    • parameters: { checkIntegrity?: boolean; password?: ArrayBuffer }
      • Optional checkIntegrity?: boolean
      • Optional password?: ArrayBuffer
    • crypto: ICryptoEngine = ...

    Returns Promise<void>

  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault(memberName: string, memberValue: any): boolean
  • Compare values with default values for all class members

    Parameters

    • memberName: string

      String name for a class member

    • memberValue: any

      Value to compare with default value

    Returns boolean

  • defaultValues(memberName: "version"): number
  • defaultValues(memberName: "authSafe"): ContentInfo
  • defaultValues(memberName: "macData"): MacData
  • defaultValues(memberName: "parsedValue"): PFXParsedValue
  • 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

    PFX ::= SEQUENCE {
       version     INTEGER {v3(3)}(v3,...),
       authSafe    ContentInfo,
       macData     MacData OPTIONAL
    }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc