SetaPDF_Signer_Ocsp_Client Class representing an OCSP client.
File: /SetaPDF v2/Signer/Ocsp/Client.php
Class hierarchy
Summary
Properties
$_lastResponse
The last response of the OCSP responder
Methods
getCurlOption()
Returns a defined cURL option or null if not set.
Parameters
- $option : int
The CURLOPT_XXX option to set
getHttpResolver()
Get the HttpResolver instance
Note that cURL options of this instance will be overwritten in the send() method and need to be defined by e.g. the setCurlOptions() method of this Client instance.
Also, the logger instance is set/synced/overwritten in send().
getLogger()
Get the logger instance.
If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger is returned.
send()
Send the OCSP request to the responder.
Parameters
- $request : SetaPDF_Signer_Ocsp_Request
Exceptions
Throws SetaPDF_Signer_Asn1_Exception,SetaPDF_Signer_Exception
setCurlOption()
Sets one or more cURL options with the assigned value.
Parameters
- $option : int|array
The CURLOPT_XXX option to set
- $value : string|null
The value to be set on option
See
setCurlOptions()
Set options for the cURL transfer.
Parameters
- $curlOptions : array
The curl options.