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

$_nonce

A reference to the nonce element.

$_ocspRequest

$_requestList


Methods

__construct()

The constructor.

Exceptions

Throws Exception

add()

public SetaPDF_Signer_Ocsp_Request::add (
SetaPDF_Signer_X509_Certificate $certificate, SetaPDF_Signer_X509_Certificate $issuerCertificate [, string $hashAlgorithm = SetaPDF_Signer_Digest::SHA_1 ]
): void

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

get()

Get the request message.

getNonce()

public SetaPDF_Signer_Ocsp_Request::getNonce (
void
): string

Get the nonce value.