Class Index | File Index

Classes


Class KJUR.asn1.ocsp.ResponderID


Extends KJUR.asn1.ASN1Object.
ResponderID ASN.1 class encoder
Defined in: asn1ocsp-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ResponderID ASN.1 class encoder
ResponderID ASN.1 class is defined in RFC 6960 4.2.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.ocsp.ResponderID(params)
ResponderID ASN.1 class encoder
ResponderID ASN.1 class is defined in RFC 6960 4.2.1.
ResponderID ::= CHOICE {
   byName               [1] Name,
   byKey                [2] KeyHash }
KeyHash ::= OCTET STRING -- SHA-1 hash of responder's public key
                            (excluding the tag and length fields)
Following properties are available:
  • {Array}name (OPTION) - JSON object of KJUR.asn1.x509.X500Name parameter, PEM string of X.509 certificate or X509 object for "byName",
  • {String}key (OPTION) - hexadecimal string of KeyHash value, PEM string of X.509 certificate or X509 object for "byKey"

NOTE: From jsrsasign 10.5.20, "name" and "key" member values can be specified by PEM string of X.509 certificate or X509 object. For "name", subject field of the certificate will be used and for "key", subjectKeyIdentifier extension value of the certificate will be used respectively.
new KJUR.asn1.ocsp.ResponderID({key: "12ab..."})
new KJUR.asn1.ocsp.ResponderID({name: {str: "/C=JP/O=Resp"}})
new KJUR.asn1.ocsp.ResponderID({name: {array: [[{type:"C",value:"JP",ds:"prn"}]...]}})
// by certificate
new KJUR.asn1.ocsp.ResponderID({key: "-----BEGIN CERTIFICATE..."})
new KJUR.asn1.ocsp.ResponderID({name: "-----BEGIN CERTIFICATE..."})
// by X509 object
new KJUR.asn1.ocsp.ResponderID({key: new X509(...)})
new KJUR.asn1.ocsp.ResponderID({name: new X509(...)})
Parameters:
{Array} params
JSON object of constructor parameters
Since:
jsrsasign 9.1.6 asn1ocsp 1.1.0
See:
KJUR.asn1.ocsp.OCSPResponse
KJUR.asn1.ocsp.ResponseBytes
KJUR.asn1.ocsp.BasicOCSPResponse
KJUR.asn1.ocsp.ResponseData
X509#getSubject
X509#getExtSubjectKeyIdentifier

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