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, params
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
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
// OtherHashAlgAndValue with SHA256 by PEM or Hex Cert
o = new KJUR.asn1.cades.OtherHash({alg: 'sha256', cert: certPEMorHex});
// OtherHashAlgAndValue with SHA256 by hash value
o = new KJUR.asn1.cades.OtherHash({alg: 'sha256', hash: '1234'});
// OtherHashValue(sha1) by PEM or Hex Cert
o = new KJUR.asn1.cades.OtherHash({cert: certPEM});
// OtherHashValue(sha1) by PEM or Hex Cert
o = new KJUR.asn1.cades.OtherHash(certPEMStr);
// OtherHashValue(sha1) by hash value
o = new KJUR.asn1.cades.OtherHash("1234");
- Parameters:
- {Array} params
- associative array of parameters
- Since:
- jsrsasign 4.7.0 asn1cades 1.0.0