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
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 for "byName"
  • {String}key (OPTION) - hexadecimal string of KeyHash value
new KJUR.asn1.ocsp.ResponderID({name: {str: "/C=JP/O=Resp"}})
new KJUR.asn1.ocsp.ResponderID({name: {array: [[{type:"C",value:"JP",ds:"prn"}]...]}})
new KJUR.asn1.ocsp.ResponderID({key: "12ab..."})
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

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