Class Index | File Index

Classes


Class KJUR.asn1.cms.EncapsulatedContentInfo


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

Class Summary
Constructor Attributes Constructor Name and Description
 
class for EncapsulatedContentInfo ASN.1 structure for CMS
EncapsulatedContentInfo ::= SEQUENCE {
   eContentType ContentType,
   eContent [0] EXPLICIT OCTET STRING OPTIONAL }
ContentType ::= OBJECT IDENTIFIER
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.EncapsulatedContentInfo(params)
class for EncapsulatedContentInfo ASN.1 structure for CMS
EncapsulatedContentInfo ::= SEQUENCE {
   eContentType ContentType,
   eContent [0] EXPLICIT OCTET STRING OPTIONAL }
ContentType ::= OBJECT IDENTIFIER
o = new KJUR.asn1.cms.EncapsulatedContentInfo();
o.setContentType('1.2.3.4.5');     // specify eContentType by OID
o.setContentType('data');          // specify eContentType by name
o.setContentValueHex('a1a2a4...'); // specify eContent data by hex string
o.setContentValueStr('apple');     // specify eContent data by UTF-8 string
// for detached contents (i.e. data not concluded in eContent)
o.isDetached = true;               // false as default
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 4.2.4 asn1cms 1.0.0

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