Class Index | File Index

Classes


Class KJUR.asn1.cms.SigningCertificateV2


Extends KJUR.asn1.cms.Attribute.
class for CMS SigningCertificateV2 attribute
Defined in: asn1cms-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
class for CMS SigningCertificateV2 attribute
This is an ASN.1 encoder for SigningCertificateV2 attribute defined in RFC 5035 section 3.
Fields borrowed from class KJUR.asn1.cms.Attribute:
params, typeOid
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Methods borrowed from class KJUR.asn1.cms.Attribute:
getValueArray
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.cms.SigningCertificateV2(params)
class for CMS SigningCertificateV2 attribute
This is an ASN.1 encoder for SigningCertificateV2 attribute defined in RFC 5035 section 3.
oid-signingCertificateV2 = 1.2.840.113549.1.9.16.2.47
Attribute ::= SEQUENCE {
   type               OBJECT IDENTIFIER,
   values             AttributeSetValue }
AttributeSetValue ::= SET OF ANY
SigningCertificateV2 ::=  SEQUENCE {
   certs        SEQUENCE OF ESSCertIDv2,
   policies     SEQUENCE OF PolicyInformation OPTIONAL }
ESSCertIDv2 ::=  SEQUENCE {
   hashAlgorithm           AlgorithmIdentifier
                           DEFAULT {algorithm id-sha256},
   certHash                Hash,
   issuerSerial            IssuerSerial OPTIONAL }
Hash ::= OCTET STRING
IssuerSerial ::= SEQUENCE {
   issuer                  GeneralNames,
   serialNumber            CertificateSerialNumber }
new KJUR.asn1.cms.SigningCertificateV2({array: [certPEM]}); // DEFAULT sha256
new KJUR.asn1.cms.SigningCertificateV2({array: [certPEM],
                                        hashAlg: 'sha512'});
new KJUR.asn1.cms.SigningCertificateV2({
  array: [
    {cert: certPEM1, hashAlg: 'sha512'},
    {cert: certPEM2, hashAlg: 'sha256'},
    {cert: certPEM3}, // DEFAULT sha256
    certPEM4 // DEFAULT sha256
  ]
})
new KJUR.asn1.cms.SigningCertificateV2({
  array: [
    {cert: certPEM1, hashAlg: 'sha512'},
    {cert: certPEM2, hashAlg: 'sha256'},
    {cert: certPEM3}, // DEFAULT sha256
    certPEM4 // DEFAULT sha256
  ]
})
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 4.5.1 asn1cms 1.0.1

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