Class KJUR.asn1.ocsp.OCSPUtil
				
				
			
				Utility class for OCSP
				
				
					
Defined in:  asn1ocsp-1.0.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
							
							 Utility class for OCSP 
						This class provides utility static methods for OCSP.  | 
					
| Method Attributes | Method Name and Description | 
|---|---|
| <static> | 
								 KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo(h)
								 
								parse OCSPResponse 
							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.
				
				
				
				
					
					
					
						This class provides utility static methods for OCSP.
- KJUR.asn1.ocsp.OCSPUtil.getRequestHex - generates hexadecimal string of OCSP request
 
- Since:
 - jsrsasign 6.1.0 asn1ocsp 1.0.0
 
					Method Detail
				
				
					 
					<static> 
					
					{Object}
					KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo(h)
					
					
					
						parse OCSPResponse
This static method parse a hexadecimal string of DER OCSPResponse and returns JSON object of its parsed result. Its result has following properties:
					
					
					
					This static method parse a hexadecimal string of DER OCSPResponse and returns JSON object of its parsed result. Its result has following properties:
- responseStatus - integer of responseStatus
 - certStatus - string of certStatus (ex. good, revoked or unknown)
 - thisUpdate - string of thisUpdate in Zulu(ex. 20151231235959Z)
 - nextUpdate - string of nextUpdate in Zulu(ex. 20151231235959Z)
 
info = KJUR.asn1.ocsp.OCSPUtil.getOCSPResponseInfo("3082...");
					
					
					
						
							- Parameters:
 - {String} h
 - hexadecimal string of DER OCSPResponse
 
- 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.
					
					
					
					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