Class KJUR.asn1.cades.CAdESUtil
CAdES utilities class
Defined in: asn1cades-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CAdES utiliteis class
|
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
<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:
- version - hex TLV of version
- si - hex TLV of SignerIdentifier
- digalg - hex TLV of DigestAlgorithm
- sattrs - hex TLV of SignedAttributes
- sigalg - hex TLV of SignatureAlgorithm
- sig - hex TLV of signature
- sigval = hex V of signature
- obj - parsed KJUR.asn1.cms.SignerInfo object
- 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