Class Index | File Index

Classes


Class KJUR.asn1.cms.CMSUtil

CMS utilities class
Defined in: asn1cms-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
CMS utiliteis class
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.cms.CMSUtil.newSignedData(param)
generate SignedData object specified by JSON parameters This method provides more easy way to genereate CMS SignedData ASN.1 structure by JSON data.
Class Detail
KJUR.asn1.cms.CMSUtil()
CMS utiliteis class
Method Detail
<static> {KJUR.asn1.cms.SignedData} KJUR.asn1.cms.CMSUtil.newSignedData(param)
generate SignedData object specified by JSON parameters This method provides more easy way to genereate CMS SignedData ASN.1 structure by JSON data.
var sd = KJUR.asn1.cms.CMSUtil.newSignedData({
  content: {str: "jsrsasign"},
  certs: [certPEM],
  signerInfos: [{
    hashAlg: 'sha256',
    sAttr: {
      SigningTime: {}
      SigningCertificateV2: {array: [certPEM]},
    },
    signerCert: certPEM,
    sigAlg: 'SHA256withRSA',
    signerPrvKey: prvPEM
  }]
});
Parameters:
{Array} param
JSON parameter to generate CMS SignedData
Returns:
{KJUR.asn1.cms.SignedData} object just generated

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