Class: PasswordRecipientinfo
Represents the PasswordRecipientInfo structure described in RFC5652
Hierarchy
-
↳
PasswordRecipientinfo
Implements
Constructors
constructor
• new PasswordRecipientinfo(parameters?
): PasswordRecipientinfo
Initializes a new instance of the PasswordRecipientinfo class
Parameters
Name | Type | Description |
---|---|---|
parameters | PasswordRecipientinfoParameters | Initialization parameters |
Returns
Overrides
Properties
encryptedKey
• encryptedKey: OctetString
Implementation of
IPasswordRecipientInfo.encryptedKey
keyDerivationAlgorithm
• Optional
keyDerivationAlgorithm: AlgorithmIdentifier
Implementation of
IPasswordRecipientInfo.keyDerivationAlgorithm
keyEncryptionAlgorithm
• keyEncryptionAlgorithm: AlgorithmIdentifier
Implementation of
IPasswordRecipientInfo.keyEncryptionAlgorithm
password
• password: ArrayBuffer
Implementation of
IPasswordRecipientInfo.password
version
• version: number
Implementation of
IPasswordRecipientInfo.version
CLASS_NAME
▪ Static
CLASS_NAME: string
= "PasswordRecipientInfo"
Name of the class
Overrides
Accessors
className
• get
className(): string
Returns
string
Inherited from
PkiObject.className
Methods
fromSchema
▸ fromSchema(schema
): void
Converts parsed ASN.1 object into current class
Parameters
Name | Type | Description |
---|---|---|
schema | any | ASN.1 schema |
Returns
void
Overrides
toJSON
▸ toJSON(): PasswordRecipientInfoJson
Converts the class to JSON object
Returns
JSON object
Overrides
toSchema
▸ toSchema(): Sequence
Converts current object to ASN.1 object and sets correct values
Returns
Sequence
ASN.1 object
Overrides
toString
▸ toString(encoding?
): string
Parameters
Name | Type | Default value |
---|---|---|
encoding | "base64" | "base64url" | "hex" | "hex" |
Returns
string
Inherited from
blockName
▸ blockName(): string
Returns block name
Returns
string
Returns string block name
Inherited from
compareWithDefault
▸ compareWithDefault(memberName
, memberValue
): boolean
Compare values with default values for all class members
Parameters
Name | Type | Description |
---|---|---|
memberName | string | String name for a class member |
memberValue | any | Value to compare with default value |
Returns
boolean
defaultValues
▸ defaultValues(memberName
): number
Returns default values for all class members
Parameters
Name | Type | Description |
---|---|---|
memberName | "version" | String name for a class member |
Returns
number
Default value
Overrides
▸ defaultValues(memberName
): AlgorithmIdentifier
Parameters
Name | Type |
---|---|
memberName | "keyDerivationAlgorithm" |
Returns
Overrides
PkiObject.defaultValues
▸ defaultValues(memberName
): AlgorithmIdentifier
Parameters
Name | Type |
---|---|
memberName | "keyEncryptionAlgorithm" |