SetaPDF_Signer_Asn1_Signed Abstract class for signed ASN.1 strucutres.

File: /SetaPDF v2/Signer/Asn1/Signed.php

Class hierarchy

Summary

Static Properties

$verifyCallback

static public null|callable SetaPDF_Signer_Asn1_Signed::$verifyCallback

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


Properties

$_verifyCache

private array SetaPDF_Signer_Asn1_Signed::$_verifyCache = array()


Methods

getSignatureAlgorithm()

abstract public SetaPDF_Signer_Asn1_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 SetaPDF_Signer_Asn1_Signed::getSignatureValue (
[ bool $hex = true ]
): string

Get the signature value.

Parameters
$hex : bool
 

getSignedData()

Get the signed data.

verify()

Verify the signed object.

Parameters
$signerCertificate : SetaPDF_Signer_X509_Certificate
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception

Throws SetaPDF_Signer_Exception