Class Index | File Index

Classes


Class KJUR.asn1.cades.OtherHashAlgAndValue


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

Class Summary
Constructor Attributes Constructor Name and Description
 
class for OtherHashAlgAndValue ASN.1 object
This class provides ASN.1 encoder for OtherHashAlgAndValue defined in RFC 5126 CAdES section 5.8.1.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified, params
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.cades.OtherHashAlgAndValue(params)
class for OtherHashAlgAndValue ASN.1 object
This class provides ASN.1 encoder for OtherHashAlgAndValue defined in RFC 5126 CAdES section 5.8.1.
OtherHashAlgAndValue ::= SEQUENCE {
   hashAlgorithm   AlgorithmIdentifier,
   hashValue       OtherHashValue }
OtherHashValue ::= OCTET STRING
Following properties can be apply to constructor arguments:
  • {String} alg - hash algorithm name for "hashAlgorithm" field
  • {String} hash - hexadecimal string for "hashValue" field
// specify by hash
new KJUR.asn1.cades.OtherHashAlgAndValue({
  alg: "sha256",
  hash: "12abcd..."
})

// or specify by cert PEM or hex
new KJUR.asn1.cades.OtherHashAlgAndValue({
  alg: "sha256",
  cert: "-----BEGIN..."
})
new KJUR.asn1.cades.OtherHashAlgAndValue({
  alg: "sha256",
  cert: "3082..."
})
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 4.7.0 asn1cades 1.0.0

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