setasign\SetaPDF2\Signer\Timestamp\Module

AbstractModule Abstract class representing a timestamp module

File: /SetaPDF v2/Signer/Timestamp/Module/AbstractModule.php
Old class name (alias): \SetaPDF_Signer_Timestamp_Module_AbstractModule

Class hierarchy

Summary

Properties

$_digest

protected string AbstractModule::$_digest = 'sha256'

The message digest


Methods

_getHash()

protected AbstractModule::_getHash (): string

Get the hash that should be timestamped.

Parameters
$data : string|\SetaPDF_Core_Reader_FilePath

The hash of the main signature

getDigest()

public AbstractModule::getDigest (
void
): string

Get the digest algorithm.

setDigest()

public AbstractModule::setDigest (
string $digest
): void

Set the digest algorithm to use.

Parameters
$digest : string

Possible values are defined in \setasign\SetaPDF2\Signer\Digest

See