Class KJUR.asn1.cms.AttributeList
Extends
KJUR.asn1.ASN1Object.
class for Attributes ASN.1 structure for CMS
Defined in: asn1cms-1.0.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
KJUR.asn1.cms.AttributeList(params)
class for Attributes ASN.1 structure for CMS
Attributes ::= SET OF Attribute
Attribute ::= SEQUENCE {
type OBJECT IDENTIFIER,
values AttributeSetValue }
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.cms.AttributeList(params)
class for Attributes ASN.1 structure for CMS
Attributes ::= SET OF Attribute
Attribute ::= SEQUENCE {
type OBJECT IDENTIFIER,
values AttributeSetValue }
// specify by X500Name and DERInteger
o = new KJUR.asn1.cms.AttributeList({sorted: false}); // ASN.1 BER unsorted SET OF
o = new KJUR.asn1.cms.AttributeList(); // ASN.1 DER sorted by default
o.clear(); // clear list of Attributes
n = o.length(); // get number of Attribute
o.add(new KJUR.asn1.cms.SigningTime()); // add SigningTime attribute
hex = o.getEncodedHex(); // get hex encoded ASN.1 data
- Parameters:
- {Array} params
- associative array of parameters
- Since:
- jsrsasign 4.2.4 asn1cms 1.0.0