Class Index | File Index

Classes


Class KJUR.asn1.cms.AttributeList


Extends KJUR.asn1.ASN1Object.
class for Attributes ASN.1 structure for CMS
Defined in: asn1cms-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
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
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

© 2012 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0