setasign\SetaPDF2\Signer\Ocsp
Request Class for creating an OCSPRequest structure.
File: /SetaPDF v2/Signer/Ocsp/Request.php
Old class name (alias):
\SetaPDF_Signer_Ocsp_Request
OCSPRequest ::= SEQUENCE { tbsRequest TBSRequest, optionalSignature [0] EXPLICIT Signature OPTIONAL } TBSRequest ::= SEQUENCE { version [0] EXPLICIT Version DEFAULT v1, requestorName [1] EXPLICIT GeneralName OPTIONAL, requestList SEQUENCE OF Request, requestExtensions [2] EXPLICIT Extensions OPTIONAL } Signature ::= SEQUENCE { signatureAlgorithm AlgorithmIdentifier, signature BIT STRING, certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL } Version ::= INTEGER { v1(0) } Request ::= SEQUENCE { reqCert CertID, singleRequestExtensions [0] EXPLICIT Extensions OPTIONAL } CertID ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, issuerNameHash OCTET STRING, -- Hash of Issuers DN issuerKeyHash OCTET STRING, -- Hash of Issuers public key serialNumber CertificateSerialNumber }
Class hierarchy
Summary
Properties
$_nonce
protected \SetaPDF_Signer_Asn1_Element Request::$_nonce
A reference to the nonce element.
$_ocspRequest
protected \SetaPDF_Signer_Asn1_Element Request::$_ocspRequest
The request ASN.1 structure.
$_requestList
protected \SetaPDF_Signer_Asn1_Element Request::$_requestList
The requestList element.
Methods
add()
public Request::add (
\SetaPDF_Signer_X509_Certificate $certificate,
\SetaPDF_Signer_X509_Certificate $issuerCertificate,
string $hashAlgorithm = \setasign\SetaPDF2\Signer\Digest::SHA_1
): void\SetaPDF_Signer_X509_Certificate $issuerCertificate,
string $hashAlgorithm = \setasign\SetaPDF2\Signer\Digest::SHA_1
Add a certificate to the reuqest list.
Parameters
- $certificate : \SetaPDF_Signer_X509_Certificate
- $issuerCertificate : \SetaPDF_Signer_X509_Certificate
- $hashAlgorithm : string