Class Index | File Index

Classes


Class KJUR.asn1.ocsp.TBSRequest


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

Class Summary
Constructor Attributes Constructor Name and Description
 
ASN.1 TBSRequest class for OCSP
TBSRequest ASN.1 class is defined in RFC 6960 4.1.1.
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Method Summary
Method Attributes Method Name and Description
 
set TBSRequest ASN.1 object by array of parameters.
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
Class Detail
KJUR.asn1.ocsp.TBSRequest(params)
ASN.1 TBSRequest class for OCSP
TBSRequest ASN.1 class is defined in RFC 6960 4.1.1.
TBSRequest ::= SEQUENCE {
  version            [0] EXPLICIT Version DEFAULT v1,
  requestorName      [1] EXPLICIT GeneralName OPTIONAL,
  requestList            SEQUENCE OF Request,
  requestExtensions  [2] EXPLICIT Extensions OPTIONAL }
// default constructor
o = new KJUR.asn1.ocsp.TBSRequest();
// constructor with requestList parameter
o = new KJUR.asn1.ocsp.TBSRequest({reqList:[
  {issuerCert: "-----BEGIN...", subjectCert: "-----BEGIN...", alg:},
  {issuerCert: "-----BEGIN...", subjectCert: "-----BEGIN...", alg: "sha256"}
]});
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 6.1.0 asn1ocsp 1.0.0
Method Detail
setRequestListByParam(aParams)
set TBSRequest ASN.1 object by array of parameters.
o = new KJUR.asn1.ocsp.TBSRequest();
o.setRequestListByParam([
  {issuerCert: "-----BEGIN...", subjectCert: "-----BEGIN...", alg:},
  {issuerCert: "-----BEGIN...", subjectCert: "-----BEGIN...", alg: "sha256"}
]);
Parameters:
{Array} aParams
array of parameters for Request class
Since:
jsrsasign 6.1.0 asn1ocsp 1.0.0

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