setasign\SetaPDF2\Signer\Asn1

Signed Abstract class for signed ASN.1 structures.

File: /SetaPDF v2/Signer/Asn1/Signed.php
Old class name (alias): \SetaPDF_Signer_Asn1_Signed

Class hierarchy

Summary

Static Properties

$usePhpseclibForRsaPss

static public bool Signed::$usePhpseclibForRsaPss = true

Flag defining whether usage of phpseclib or default OpenSSL methods for RSA_PSS validation.

$verifyCallback

static public ?callable Signed::$verifyCallback

A callable that can be used to implement individual verification logic.


Properties

$_verifyCache

private array Signed::$_verifyCache = array()

Methods

getSignatureAlgorithm()

abstract public Signed::getSignatureAlgorithm (
void
): array

Get the signature algorithm and parameter.

Return Values

The first value holds the OID of the algorithm. The second value is the ASN.1 structure of the parameters.

getSignatureValue()

abstract public Signed::getSignatureValue (
bool $hex = true
): string

Get the signature value.

Parameters
$hex : bool
 

getSignedData()

abstract public Signed::getSignedData (
void
): \SetaPDF_Core_Reader_FilePath|string|false

Get the signed data.

verify()

public Signed::verify (): bool

Verify the signed object.

Parameters
$signerCertificate : \SetaPDF_Signer_X509_Certificate
 
Exceptions

Throws Exception

Throws \setasign\SetaPDF2\Signer\Exception