Class Index | File Index

Classes


Class KJUR.asn1.ocsp.Request


Extends KJUR.asn1.ASN1Object.
ASN.1 Request class for OCSP
Defined in: asn1ocsp-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ASN.1 Request class for OCSP
Request ASN.1 class is defined in RFC 6960 4.1.1.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.ocsp.Request(params)
ASN.1 Request class for OCSP
Request ASN.1 class is defined in RFC 6960 4.1.1. singleRequestExtensions is not supported yet in this version such as nonce.
Request ::= SEQUENCE {
  reqCert                  CertID,
  singleRequestExtensions  [0] EXPLICIT Extensions OPTIONAL }
// default constructor
o = new KJUR.asn1.ocsp.Request();
// constructor with certs (sha1 is used by default)
o = new KJUR.asn1.ocsp.Request({issuerCert: "-----BEGIN...", subjectCert: "-----BEGIN..."});
// constructor with certs and sha256
o = new KJUR.asn1.ocsp.Request({issuerCert: "-----BEGIN...", subjectCert: "-----BEGIN...", alg: "sha256"});
// constructor with values
o = new KJUR.asn1.ocsp.Request({namehash: "1a...", keyhash: "ad...", serial: "1234", alg: "sha256"});
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 6.1.0 asn1ocsp 1.0.0

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