SetaPDF_Signer_Tsp_Token Class representing a Timestamp Token
File: /SetaPDF v2/Signer/Tsp/Token.php
Class hierarchy
Summary
Methods
- __construct()
- _getSignedData()
- _getSignerInfo()
- _getTstInfo()
- getAsn1()
- getCertificates()
- getDigestAlgorithm()
- getDigestAlgorithms()
- getGenerationTime()
- getIssuerAndSerialNumber()
- getMessageImprint()
- getNonce()
- getSerialNumber()
- getSignatureAlgorithm()
- getSignatureValue()
- getSignedAttribute()
- getSignedAttributes()
- getSignedData()
- getSigningCertificate()
- getSubjectKeyIdentifier()
- getUnsignedAttribute()
- getUnsignedAttributes()
- setDetachedSignedData()
- verify()
- verifyMessageImprint()
Static Properties
$usePhpseclibForRsaPss
Flag defining whether usage of phpseclib or default OpenSSL methods for RSA_PSS validation.
$verifyCallback
A callable that can be used to implement individual verification logic.
Properties
$_detachedSignedData
The detached signed data.
$_tstInfo
Methods
__construct()
_getSignerInfo()
getDigestAlgorithm()
Exceptions
Throws SetaPDF_Signer_Exception
getDigestAlgorithms()
Get the digest algorithms and parameters.
Return Values
An array of arrays where the first value holds the OID of the algorithm. The second value is the ASN.1 structure of the parameters.
Exceptions
Throws SetaPDF_Signer_Exception
getIssuerAndSerialNumber()
Get issuer and serial number of the signee.
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
getSignatureAlgorithm()
Return Values
The first value holds the OID of the algorithm. The second value is the ASN.1 structure of the parameters.
Exceptions
Throws SetaPDF_Signer_Exception
getSignatureValue()
getSignedAttribute()
Get a signed attribute by its OID.
Parameters
- $oid : string
Exceptions
Throws SetaPDF_Signer_Exception
getSignedAttributes()
Get all signed attributes.
Exceptions
Throws SetaPDF_Signer_Exception
getSignedData()
Exceptions
Throws SetaPDF_Signer_Exception
getSigningCertificate()
Get the signing certificate.
Parameters
- $extraCertificates : SetaPDF_Signer_X509_Collection
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
getSubjectKeyIdentifier()
getUnsignedAttribute()
Get an unsigned attribute by its OID.
Parameters
- $oid : string
Exceptions
Throws SetaPDF_Signer_Exception
getUnsignedAttributes()
Get all unsigned attributes.
Exceptions
Throws SetaPDF_Signer_Exception
setDetachedSignedData()
Overwritte to disable this method. It is not allowed to use it in a timestamp token instance.
Parameters
- $detachedSignedData : SetaPDF_Core_Reader_FilePath|string
verify()
Parameters
- $signerCertificate : SetaPDF_Signer_X509_Certificate
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
verifyMessageImprint()
Verifies the message imprint.
Parameters
- $data : string|SetaPDF_Core_Reader_FilePath
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception