SetaPDF_Signer_Ocsp_Client Class representing an OCSP client.
File: /SetaPDF v2/Signer/Ocsp/Client.php
Class hierarchy
Summary
Properties
$_lastResponse
protected array SetaPDF_Signer_Ocsp_Client::$_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
getLogger()
public SetaPDF_Signer_Ocsp_Client::getLogger (
void
): SetaPDF_Signer_ValidationRelatedInfo_LoggerInterfaceGet the logger instance.
If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger is returned.
send()
public SetaPDF_Signer_Ocsp_Client::send (
SetaPDF_Signer_Ocsp_Request $request
): SetaPDF_Signer_Ocsp_ResponseSend the OCSP request to the responder.
Parameters
- $request : SetaPDF_Signer_Ocsp_Request
Exceptions
Throws SetaPDF_Signer_Asn1_Exception,SetaPDF_Signer_Exception
setCurlOption()
public SetaPDF_Signer_Ocsp_Client::setCurlOption (
int|array $option [, string|null $value = null ]
): voidSets 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