Class Index | File Index

Classes


Class KJUR.asn1.cades.SignaturePolicyId


Extends KJUR.asn1.ASN1Object.
RFC 5126 CAdES SignaturePolicyId ASN.1 structure class
Defined in: asn1cades-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
RFC 5126 CAdES SignaturePolicyId ASN.1 structure class
This class provides ASN.1 encoder for SignaturePolicyId 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, tohex
Class Detail
KJUR.asn1.cades.SignaturePolicyId(params)
RFC 5126 CAdES SignaturePolicyId ASN.1 structure class
This class provides ASN.1 encoder for SignaturePolicyId defined in RFC 5126 CAdES section 5.8.1.
SignaturePolicyId ::= SEQUENCE {
   sigPolicyId           SigPolicyId,
   sigPolicyHash         SigPolicyHash,
   sigPolicyQualifiers   SEQUENCE SIZE (1..MAX) OF
                            SigPolicyQualifierInfo OPTIONAL }
SigPolicyId ::= OBJECT IDENTIFIER
SigPolicyHash ::= OtherHashAlgAndValue
OtherHashAlgAndValue ::= SEQUENCE {
   hashAlgorithm   AlgorithmIdentifier,
   hashValue       OtherHashValue }
OtherHashValue ::= OCTET STRING
Following properties can be apply to constructor arguments adding to KJUR.asn1.cades.OtherHashAlgAndValue constructor:
  • {String} oid - signature policy OID string or name (ex. 1.2.3.4)
new KJUR.asn1.cades.SignaturePolicyId({
  oid: "1.2.3.4.5",
  alg: "sha256",
  hash: "1234abcd..."
});
Parameters:
{Array} params
JSON object of parameters
Since:
jsrsasign 10.0.0 asn1cades 2.0.0
See:
KJUR.asn1.cades.SignaturePolicyIdentifier
KJUR.asn1.cades.OtherHashAlgAndValue

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