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
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.
Parsed result will be an associative array which has
following properties:
- version - hex of CMSVersion ASN.1 TLV
- algs - hex of DigestAlgorithms ASN.1 TLV
- encapcontent - hex of EncapContentInfo ASN.1 TLV
- certs - hex of Certificates ASN.1 TLV
- revs - hex of RevocationInfoChoices ASN.1 TLV
- si[] - array of SignerInfo properties
- obj - parsed KJUR.asn1.cms.SignedData object
info = KJUR.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned(beshex); sd = info.obj;
- 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
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
- Returns:
- {Object} associative array of parsed data