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 (
[ null|string $url = null ]
)

The constructor.

Parameters
$url : null|string

The URL of the OCSP responder.

getCurlOption()

public SetaPDF_Signer_Ocsp_Client::getCurlOption (
int $option
): string|null

Returns a defined Curl option or null if not set.

Parameters
$option : int

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

public SetaPDF_Signer_Ocsp_Client::getUrl (
void
): string|null

Returns the URL of the OCSP responder.

send()

setCurlOption()

public SetaPDF_Signer_Ocsp_Client::setCurlOption (
int|array $option [, string|null $value = null ]
): void

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

setUrl()

public SetaPDF_Signer_Ocsp_Client::setUrl (
string $url
): void

Sets the URL of the OCSP responder.

Parameters
$url : string

The url to the OCSP responder