setasign\SetaPDF2\Signer\Ocsp

SingleResponse Class representing a SingleResponse structure of an OCSP response.

File: /SetaPDF v2/Signer/Ocsp/SingleResponse.php
Old class name (alias): \SetaPDF_Signer_Ocsp_SingleResponse

Class hierarchy

Summary

Constants

CERT_STATUS_GOOD

public const int SingleResponse::CERT_STATUS_GOOD = 0

Certificate status constant.

CERT_STATUS_REVOKED

public const int SingleResponse::CERT_STATUS_REVOKED = 1

Certificate status constant.

CERT_STATUS_UNKNOWN

public const int SingleResponse::CERT_STATUS_UNKNOWN = 2

Certificate status constant.


Properties

$_singleResponse

The ASN.1 element of the single response.


Methods

__construct()

The constructor.

Parameters
$singleResponse : \SetaPDF_Signer_Asn1_Element
 

_getCertStatus()

Get the certificate status element.

Exceptions

Throws \setasign\SetaPDF2\Signer\Exception

getCertId()

Get the CertId instance of this single response.

getCertStatus()

public SingleResponse::getCertStatus (
void
): int

Get the certificate status.

Exceptions

Throws \setasign\SetaPDF2\Signer\Exception

getNextUpdate()

public SingleResponse::getNextUpdate (
void
): bool|\DateTime

Get the DateTime value of the "NextUpdate" field.

getThisUpdate()

Get the DateTime value of the "ThisUpdate" field.

Exceptions

Throws \setasign\SetaPDF2\Signer\Exception