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()

Add a certificate to the reuqest list.

Parameters
$certificate : SetaPDF_Signer_X509_Certificate
 
$issuerCertificate : SetaPDF_Signer_X509_Certificate
 
$hashAlgorithm
 
Exceptions

Throws SetaPDF_Signer_Exception

get()

public SetaPDF_Signer_Ocsp_Request::get (
void
):

Get the request message.

getNonce()

Get the nonce value.