Class KJUR.asn1.cms.CMSUtil
CMS utilities class
Defined in: asn1cms-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CMS utiliteis class
|
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.cms.CMSUtil.newSignedData(params)
generate SignedData object specified by JSON parameters (DEPRECATED)
This class generates KJUR.asn1.cms.SignedData object. |
<static> |
KJUR.asn1.cms.CMSUtil.verifySignedData(param)
verify SignedData specified by JSON parameters
This method provides validation for CMS SignedData.
|
Method Detail
<static>
{KJUR.asn1.cms.SignedData}
KJUR.asn1.cms.CMSUtil.newSignedData(params)
generate SignedData object specified by JSON parameters (DEPRECATED)
This class generates KJUR.asn1.cms.SignedData object. However this class is deprecated. Please use KJUR.asn1.cms.SignedData class constructor instead. As for "params" parameter, KJUR.asn1.cms.SignedData parameters are available.
This class generates KJUR.asn1.cms.SignedData object. However this class is deprecated. Please use KJUR.asn1.cms.SignedData class constructor instead. As for "params" parameter, KJUR.asn1.cms.SignedData parameters are available.
- Parameters:
- {Array} params
- JSON parameter to generate CMS SignedData
- Deprecated:
- since jsrsasign 10.0.0 asn1cms 2.0.0.
- Returns:
- {KJUR.asn1.cms.SignedData} object just generated
<static>
{Object}
KJUR.asn1.cms.CMSUtil.verifySignedData(param)
verify SignedData specified by JSON parameters
This method provides validation for CMS SignedData.
Following parameters can be applied:
- cms - hexadecimal data of DER CMS SignedData (aka. PKCS#7 or p7s) to verify (OPTION)
KJUR.asn1.cms.CMSUtil.verifySignedData({ cms: "3082058a..." }) → { isValid: true, parse: ... // parsed data signerInfos: [ { } ] }
- Parameters:
- {Array} param
- JSON parameter to verify CMS SignedData
- Since:
- jsrsasign 8.0.4 asn1cms 1.0.5
- Returns:
- {Object} JSON data as the result of validation