KeyBag
Class from RFC5208
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new KeyBag(
parameters?):KeyBag
Constructor for Attribute class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”{ }
Returns
Section titled “Returns”KeyBag
Overrides
Section titled “Overrides”Properties
Section titled “Properties”attributes?
Section titled “attributes?”
optionalattributes?:Attribute[]
Inherited from
Section titled “Inherited from”parsedKey?
Section titled “parsedKey?”
optionalparsedKey?:ECPrivateKey|RSAPrivateKey
Inherited from
Section titled “Inherited from”privateKey
Section titled “privateKey”privateKey:
OctetString
Inherited from
Section titled “Inherited from”privateKeyAlgorithm
Section titled “privateKeyAlgorithm”privateKeyAlgorithm:
AlgorithmIdentifier
Inherited from
Section titled “Inherited from”PrivateKeyInfo.privateKeyAlgorithm
version
Section titled “version”version:
number
Inherited from
Section titled “Inherited from”CLASS_NAME
Section titled “CLASS_NAME”
staticCLASS_NAME:string="PrivateKeyInfo"
Name of the class
Inherited from
Section titled “Inherited from”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”fromJSON()
Section titled “fromJSON()”fromJSON(
json):void
Converts JSON value into current object
Parameters
Section titled “Parameters”any
JSON object
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”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
Inherited from
Section titled “Inherited from”toJSON()
Section titled “toJSON()”toJSON():
JsonWebKey|PrivateKeyInfoJson
Converts the class to JSON object
Returns
Section titled “Returns”JsonWebKey | PrivateKeyInfoJson
JSON object
Inherited from
Section titled “Inherited from”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
Inherited from
Section titled “Inherited from”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”defaultValues()
Section titled “defaultValues()”
staticdefaultValues(memberName):any
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”string
String name for a class member
Returns
Section titled “Returns”any
Default value
Inherited from
Section titled “Inherited from”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<{ attributes?: string; privateKey?: string; privateKeyAlgorithm?: AlgorithmIdentifierSchema; version?: string; }> = {}
Input parameters for the schema
Returns
Section titled “Returns”any
ASN.1 schema object