Class Index | File Index

Classes


Class KJUR.asn1.ocsp.OCSPResponse


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

Class Summary
Constructor Attributes Constructor Name and Description
 
OCSPResponse ASN.1 class encoder
OCSPResponse 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.OCSPResponse(params)
OCSPResponse ASN.1 class encoder
OCSPResponse ASN.1 class is defined in RFC 6960 4.2.1.
OCSPResponse ::= SEQUENCE {
   responseStatus         OCSPResponseStatus,
   responseBytes          [0] EXPLICIT ResponseBytes OPTIONAL }
OCSPResponseStatus ::= ENUMERATED {
    successful            (0),  -- Response has valid confirmations
    malformedRequest      (1),  -- Illegal confirmation request
    internalError         (2),  -- Internal error in issuer
    tryLater              (3),  -- Try again later
                                -- (4) is not used
    sigRequired           (5),  -- Must sign the request
    unauthorized          (6)   -- Request unauthorized
} 
This constructor accepts all parameter of KJUR.asn1.ocsp.ResponseBytes for "successful" response. Further more following property is needed:
  • {Number or String}resstats - responseStatus value by a number or name. (ex. 2, "internalError")
// default constructor for "successful"
o = new KJUR.asn1.ocsp.OCSPResponse({
  resstatus: "successful",
  <>
});
// constructor for error
new KJUR.asn1.ocsp.OCSPRequest({resstatus: 1})
new KJUR.asn1.ocsp.OCSPRequest({resstatus: "unauthorized"})
Parameters:
{Array} params
JSON object of constructor parameters
Since:
jsrsasign 9.1.6 asn1ocsp 1.1.0
See:
KJUR.asn1.ocsp.ResponseBytes

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