Class: Attribute
Represents the Attribute structure described in RFC2986
Hierarchy
-
↳
Attribute
Implements
Constructors
constructor
• new Attribute(parameters?
): Attribute
Initializes a new instance of the Attribute class
Parameters
Name | Type | Description |
---|---|---|
parameters | AttributeParameters | Initialization parameters |
Returns
Overrides
Properties
type
• type: string
Specifies type of attribute value
Implementation of
values
• values: any
[]
List of attribute values
Implementation of
CLASS_NAME
▪ Static
CLASS_NAME: string
= "Attribute"
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(): AttributeJson
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