Class Index | File Index

Classes


Class KJUR.asn1.cms.SignerIdentifier


Extends KJUR.asn1.ASN1Object.
class for CMS SignerIdentifier ASN.1 structure for CMS
Defined in: asn1cms-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
class for SignerIdentifier ASN.1 structure for CMS This is an ASN.1 encoder for SignerIdentifier ASN.1 structure defined in RFC 5652 CMS section 5.3.
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.cms.SignerIdentifier(params)
class for SignerIdentifier ASN.1 structure for CMS This is an ASN.1 encoder for SignerIdentifier ASN.1 structure defined in RFC 5652 CMS section 5.3.
SignerIdentifier ::= CHOICE {
   issuerAndSerialNumber IssuerAndSerialNumber,
   subjectKeyIdentifier [0] SubjectKeyIdentifier }
Constructor argument can have following properties:
  • {String}type - "isssn" for IssuerAndSerialNumber or "skid" for SubjectKeyIdentifier
  • {Array}issuer - KJUR.asn1.x509.X500Name parameter for issuer
  • {Array}serial - KJUR.asn1.DERInteger parameter for serial number
  • {String}skid - hexadecimal string of subject key identifier
  • {String}cert - PEM certificate string for type "isssn" or "skid"
Constructor argument properties can have following combination:
  • type=isssn, issuer, serial - IssuerAndSerialNumber
  • type=isssn, cert - IssuerAndSerialNumber
  • type=skid, skid - SubjectKeyIdentifier
  • type=skdi, cert - SubjectKeyIdentifier
new KJUR.asn1.cms.SignerIdentifier({
  type: "isssn",
  issuer: {str: "/C=JP/O=T1"},
  serial: {hex: "12ab..."}
})
new KJUR.asn1.cms.SignerIdentifier({
  type: "isssn",
  cert: "-----BEGIN..."
})
new KJUR.asn1.cms.SignerIdentifier({
  type: "skid",
  skid: "12ab..."
})
new KJUR.asn1.cms.SignerIdentifier({
  type: "skid",
  cert: "-----BEGIN..."
})
Parameters:
{Array} params
JSON object of parameters
Since:
jsrsasign 10.0.0 asn1cms 2.0.0
See:
KJUR.asn1.cms.SignedData
KJUR.asn1.cms.SignerInfo
KJUR.asn1.cms.IssuerAndSerialNumber
KJUR.asn1.cms.SubjectKeyIdentifier
KJUR.asn1.x509.X500Name

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