PFX
Represents the PFX structure described in RFC7292
Extends
Section titled “Extends”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PFX(
parameters?):PFX
Initializes a new instance of the PFX class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”PFXParameters = {}
Initialization parameters
Returns
Section titled “Returns”PFX
Overrides
Section titled “Overrides”Properties
Section titled “Properties”authSafe
Section titled “authSafe”authSafe:
ContentInfo
Implementation of
Section titled “Implementation of”macData?
Section titled “macData?”
optionalmacData?:MacData
Implementation of
Section titled “Implementation of”parsedValue?
Section titled “parsedValue?”
optionalparsedValue?:PFXParsedValue
Implementation of
Section titled “Implementation of”version
Section titled “version”version:
number
Implementation of
Section titled “Implementation of”CLASS_NAME
Section titled “CLASS_NAME”
staticCLASS_NAME:string="PFX"
Name of the class
Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”className
Section titled “className”Get Signature
Section titled “Get Signature”get className():
string
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”fromSchema()
Section titled “fromSchema()”fromSchema(
schema):void
Converts parsed ASN.1 object into current class
Parameters
Section titled “Parameters”schema
Section titled “schema”any
ASN.1 schema
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”makeInternalValues()
Section titled “makeInternalValues()”makeInternalValues(
parameters?,crypto?):Promise<void>
Making ContentInfo from PARSED_VALUE object
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”Parameters, specific to each “integrity mode”
crypto?
Section titled “crypto?”ICryptoEngine = ...
Crypto engine
Returns
Section titled “Returns”Promise<void>
parseInternalValues()
Section titled “parseInternalValues()”parseInternalValues(
parameters,crypto?):Promise<void>
Parameters
Section titled “Parameters”parameters
Section titled “parameters”checkIntegrity?
Section titled “checkIntegrity?”boolean
password?
Section titled “password?”ArrayBuffer
crypto?
Section titled “crypto?”ICryptoEngine = ...
Returns
Section titled “Returns”Promise<void>
toJSON()
Section titled “toJSON()”toJSON():
PFXJson
Converts the class to JSON object
Returns
Section titled “Returns”JSON object
Overrides
Section titled “Overrides”toSchema()
Section titled “toSchema()”toSchema():
Sequence
Converts current object to ASN.1 object and sets correct values
Returns
Section titled “Returns”Sequence
ASN.1 object
Overrides
Section titled “Overrides”toString()
Section titled “toString()”toString(
encoding?):string
Parameters
Section titled “Parameters”encoding?
Section titled “encoding?”"hex" | "base64" | "base64url" = "hex"
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”blockName()
Section titled “blockName()”
staticblockName():string
Returns block name
Returns
Section titled “Returns”string
Returns string block name
Inherited from
Section titled “Inherited from”compareWithDefault()
Section titled “compareWithDefault()”
staticcompareWithDefault(memberName,memberValue):boolean
Compare values with default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”string
String name for a class member
memberValue
Section titled “memberValue”any
Value to compare with default value
Returns
Section titled “Returns”boolean
defaultValues()
Section titled “defaultValues()”Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):number
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"version"
String name for a class member
Returns
Section titled “Returns”number
Default value
Overrides
Section titled “Overrides”Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):ContentInfo
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"authSafe"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):MacData
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"macData"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):PFXParsedValue
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"parsedValue"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
fromBER()
Section titled “fromBER()”
staticfromBER<T>(this,raw):T
Creates PKI object from the raw data
Type Parameters
Section titled “Type Parameters”T extends PkiObject
Parameters
Section titled “Parameters”PkiObjectConstructor<T>
BufferSource
ASN.1 encoded raw data
Returns
Section titled “Returns”T
Initialized and filled current class object
Inherited from
Section titled “Inherited from”schema()
Section titled “schema()”
staticschema(parameters?):any
Returns value of pre-defined ASN.1 schema for current class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”SchemaParameters<{ authSafe?: ContentInfoSchema; macData?: MacDataSchema; version?: string; }> = {}
Input parameters for the schema
Returns
Section titled “Returns”any
ASN.1 schema object