SetaPDF_Signer_Ocsp_Client Class representing an OCSP client.

File: /SetaPDF v2/Signer/Ocsp/Client.php

Class hierarchy

Summary

Properties

$_curlOptions

protected array SetaPDF_Signer_Ocsp_Client::$_curlOptions = array()

Additional curl options

$_lastResponse

The last response of the OCSP responder


Methods

__construct()

public SetaPDF_Signer_Ocsp_Client::__construct (
[ $url = null ]
)

The constructor.

Parameters
$url

The URL of the OCSP responder.

getCurlOption()

Returns a defined Curl option or null if not set.

Parameters
$option

The CURLOPT_XXX option to set

getLastResponse()

Returns the last response of the OCSP responder.

getLogger()

Get the logger instance.

If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger is returned.

getUrl()

Returns the URL of the OCSP responder.

send()

Send 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 (
$option [, $value = null ]
): void

Sets one or more Curl options with the assigned value.

Parameters
$option

The CURLOPT_XXX option to set

$value

The value to be set on option

See

setUrl()

public SetaPDF_Signer_Ocsp_Client::setUrl (
$url
): void

Sets the URL of the OCSP responder.

Parameters
$url

The url to the OCSP responder