setasign\SetaPDF2\Signer\Tsp

Response Class representing a Timestamp Response.

File: /SetaPDF v2/Signer/Tsp/Response.php
Old class name (alias): \SetaPDF_Signer_Tsp_Response

Class hierarchy

Summary

Constants

STATUS_GRANTED

public const int Response::STATUS_GRANTED = 0

Status constant.

STATUS_GRANTED_WITH_MODS

public const int Response::STATUS_GRANTED_WITH_MODS = 1

Status constant.

STATUS_REJECTION

public const int Response::STATUS_REJECTION = 2

Status constant.

STATUS_REVOCATION_NOTIFICATION

Status constant.

STATUS_REVOCATION_WARNING

public const int Response::STATUS_REVOCATION_WARNING = 4

Status constant.

STATUS_WAITING

public const int Response::STATUS_WAITING = 3

Status constant.


Properties

$_message

The response message.

$_token

protected ?Token Response::$_token

The timestamp token instance.


Methods

__construct()

The constructor.

Parameters
$response : \SetaPDF_Signer_Asn1_Element|string
 
Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

Throws \setasign\SetaPDF2\Signer\Exception

getAsn1()

Get the ASN.1 instance of the timestamp response.

getStatus()

public Response::getStatus (
void
): int

Get the status of the timestamp response.

getToken()

Get the timestamp token of the response.