Class Index | File Index

Classes


Class KJUR.asn1.cades.OtherHash


Extends KJUR.asn1.ASN1Object.
class for OtherHash ASN.1 object
Defined in: asn1cades-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
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
See:
KJUR.asn1.cades.OtherHashAlgAndValue
KJUR.asn1.cades.OtherHashValue

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