Class KJUR.asn1.cades.OtherHash
Extends
KJUR.asn1.ASN1Object.
class for OtherHash ASN.1 object
Defined in: asn1cades-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.cades.OtherHash(params)
class for OtherHash ASN.1 object
OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue} OtherHashValue ::= OCTET STRING |
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
Method Attributes | Method Name and Description |
---|---|
<static> |
KJUR.asn1.cades.OtherHash.setByCertPEM(certPEM)
set value by PEM string of certificate
This method will set value by a PEM string of a certificate.
|
Class Detail
KJUR.asn1.cades.OtherHash(params)
class for OtherHash ASN.1 object
OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue} OtherHashValue ::= OCTET STRING
o = new KJUR.asn1.cades.OtherHash("1234"); o = new KJUR.asn1.cades.OtherHash(certPEMStr); // default alg=sha256 o = new KJUR.asn1.cades.OtherHash({alg: 'sha256', hash: '1234'}); o = new KJUR.asn1.cades.OtherHash({alg: 'sha256', cert: certPEM}); o = new KJUR.asn1.cades.OtherHash({cert: certPEM});
- Parameters:
- {Array} params
- associative array of parameters
- Since:
- jsrsasign 4.7.0 asn1cades 1.0.0
Method Detail
<static>
KJUR.asn1.cades.OtherHash.setByCertPEM(certPEM)
set value by PEM string of certificate
This method will set value by a PEM string of a certificate.
An algorithm used to hash certificate data will
be defined by 'alg' property and 'sha256' is default.
- Parameters:
- {String} certPEM
- PEM string of certificate
- Returns:
- unspecified