Class Index | File Index

Classes


Class KJUR.asn1.cades.CAdESUtil

CAdES utilities class
Defined in: asn1cades-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
CAdES utiliteis class
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned(hex)
parse CMS SignedData to add unsigned attributes This method will parse a hexadecimal string of ContentInfo with CMS SignedData to add a attribute to unsigned attributes field in a signerInfo field.
<static>  
KJUR.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned(hex)
parse SignerInfo to add unsigned attributes (DEPRECATED) This method will parse a hexadecimal string of SignerInfo to add a attribute to unsigned attributes field in a signerInfo field.
Class Detail
KJUR.asn1.cades.CAdESUtil()
CAdES utiliteis class
Since:
jsrsasign 4.7.0 asn1cades 1.0.0
Method Detail
<static> {Object} KJUR.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned(hex)
parse CMS SignedData to add unsigned attributes This method will parse a hexadecimal string of ContentInfo with CMS SignedData to add a attribute to unsigned attributes field in a signerInfo field.
param = KJUR.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned(beshex);
→
{
  version: 1,
  hashalgs: ["sha256"],
  econtent: ...,
  sinfos: [{
    version: 1
    id: ...
    hashalg: "sha256",
    sattrs: {array: [...]},
    sigalg: "SHA256withRSA",
    sighex: ...
  }]
}
Parameters:
{String} hex
hexadecimal string of ContentInfo of CMS SignedData
Returns:
{Object} associative array of parsed data
See:
KJUR.asn1.cms.CMSParser#getCMSSignedData
KJUR.asn1.cms.SignedData

<static> {Object} KJUR.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned(hex)
parse SignerInfo to add unsigned attributes (DEPRECATED) This method will parse a hexadecimal string of SignerInfo to add a attribute to unsigned attributes field in a signerInfo field. Parsed result will be an associative array which has following properties: NOTE: Parsing of unsigned attributes will be provided in the future version. That's way this version provides support for CAdES-T and not for CAdES-C.
Parameters:
{String} hex
hexadecimal string of SignerInfo
Deprecated:
since jsrsasign 10.1.5 no more necessary becase parseSignedDataForAddingUnsigned don't call this
Returns:
{Object} associative array of parsed data

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