SetaPDF_Signer_Ocsp_Request Class for creating an OCSPRequest structure.
File: /SetaPDF v2/Signer/Ocsp/Request.php
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 Issuer's DN issuerKeyHash OCTET STRING, -- Hash of Issuers public key serialNumber CertificateSerialNumber }
Class hierarchy
Summary
Properties
Methods
add()
Add a certificate to the reuqest list.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
- $issuerCertificate : SetaPDF_Signer_X509_Certificate
- $hashAlgorithm : string
Exceptions
Throws SetaPDF_Signer_Exception