Class Index | File Index

Classes


Class KJUR.asn1.ocsp.OCSPUtil

Utility class for OCSP
Defined in: asn1ocsp-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Utility class for OCSP
This class provides utility static methods for OCSP.
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo(h)
simple parser for OCSPResponse (DEPRECATED)
This static method parse a hexadecimal string of DER OCSPResponse and returns JSON object of its parsed result.
<static>  
KJUR.asn1.ocsp.OCSPUtil.getRequestHex(issuerCert, subjectCert, algName)
generates hexadecimal string of OCSP request
This static method generates hexadecimal string of OCSP request.
Class Detail
KJUR.asn1.ocsp.OCSPUtil()
Utility class for OCSP
This class provides utility static methods for OCSP.
Since:
jsrsasign 6.1.0 asn1ocsp 1.0.0
Method Detail
<static> {Object} KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo(h)
simple parser for OCSPResponse (DEPRECATED)
This static method parse a hexadecimal string of DER OCSPResponse and returns JSON object of its parsed result. Its result has following properties: NOTE: This method may not work preperly. Please use KJUR.asn1.ocsp.OCSPParser#getOCSPResponse.
info = KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo("3082...");
Parameters:
{String} h
hexadecimal string of DER OCSPResponse
Deprecated:
since jsrsasign 10.4.0 asn1ocsp 1.1.5 Please use OCSPParser.getOCSPRespnose
Since:
jsrsasign 6.1.0 asn1ocsp 1.0.1
Returns:
{Object} JSON object of parsed OCSPResponse

<static> {String} KJUR.asn1.ocsp.OCSPUtil.getRequestHex(issuerCert, subjectCert, algName)
generates hexadecimal string of OCSP request
This static method generates hexadecimal string of OCSP request.
// generate OCSP request using sha1 algorithnm by default.
hReq = KJUR.asn1.ocsp.OCSPUtil.getRequestHex("-----BEGIN...", "-----BEGIN...");
Parameters:
{String} issuerCert
string of PEM issuer certificate
{String} subjectCert
string of PEM subject certificate to be verified by OCSP
{String} algName
hash algorithm name used for above arguments (ex. "sha1") DEFAULT: sha1
Since:
jsrsasign 6.1.0 asn1ocsp 1.0.0
Returns:
{String} hexadecimal string of generated OCSP request

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