setasign\SetaPDF2\Signer\Cms
SignedData Class representing a CMS signed data container.
File: /SetaPDF v2/Signer/Cms/SignedData.php
Old class name (alias):
\SetaPDF_Signer_Cms_SignedData
Class hierarchy
Summary
Methods
- __construct()
- _getSignedData()
- _getSignerInfo()
- getAsn1()
- getCertificates()
- getDigestAlgorithm()
- getDigestAlgorithms()
- getIssuerAndSerialNumber()
- getSignatureAlgorithm()
- getSignatureValue()
- getSignedAttribute()
- getSignedAttributes()
- getSignedData()
- getSigningCertificate()
- getSubjectKeyIdentifier()
- getUnsignedAttribute()
- getUnsignedAttributes()
- setDetachedSignedData()
- verify()
Static Properties
$usePhpseclibForRsaPss
Flag defining whether usage of phpseclib or default OpenSSL methods for RSA_PSS validation.
$verifyCallback
static public ?callable \setasign\SetaPDF2\Signer\Asn1\Signed::$verifyCallback
A callable that can be used to implement individual verification logic.
Properties
$_detachedSignedData
protected string|\SetaPDF_Core_Reader_FilePath SignedData::$_detachedSignedData
The detached signed data.
$_message
protected \SetaPDF_Signer_Asn1_Element SignedData::$_message
The message object.
Methods
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
getIssuerAndSerialNumber()
Get issuer and serial number of the signee.
Exceptions
getSignatureAlgorithm()
Return Values
The first value holds the OID of the algorithm. The second value is the ASN.1 structure of the parameters.
Exceptions
getSigningCertificate()
public SignedData::getSigningCertificate (
?\SetaPDF_Signer_X509_Collection $extraCertificates = null
): bool|false|\SetaPDF_Signer_X509_Certificate|\SetaPDF_Signer_X509_CollectionInterfaceGet the signing certificate.
Parameters
- $extraCertificates : ?\SetaPDF_Signer_X509_Collection
Exceptions
setDetachedSignedData()
public SignedData::setDetachedSignedData (
string|\SetaPDF_Core_Reader_FilePath $detachedSignedData
): voidSet the detached signed data.
Parameters
- $detachedSignedData : string|\SetaPDF_Core_Reader_FilePath
verify()
Parameters
- $signerCertificate : \SetaPDF_Signer_X509_Certificate