Skip to content

Commit 8353a26

Browse files
Added missing methods
1 parent 606a129 commit 8353a26

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

src/Module.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,39 @@ public function getSignatureAlgorithm()
103103
return $this->signatureAlgorithm;
104104
}
105105

106+
/**
107+
* Add additional certificates which are placed into the CMS structure.
108+
*
109+
* @param array|\SetaPDF_Signer_X509_Collection $extraCertificates PEM encoded certificates or pathes to PEM encoded
110+
* certificates.
111+
* @throws \SetaPDF_Signer_Asn1_Exception
112+
*/
113+
public function setExtraCertificates($extraCertificates)
114+
{
115+
$this->padesModule->setExtraCertificates($extraCertificates);
116+
}
117+
118+
/**
119+
* Adds an OCSP response which will be embedded in the CMS structure.
120+
*
121+
* @param string|\SetaPDF_Signer_Ocsp_Response $ocspResponse DER encoded OCSP response or OCSP response instance.
122+
* @throws SetaPDF_Signer_Exception
123+
*/
124+
public function addOcspResponse($ocspResponse)
125+
{
126+
$this->padesModule->addOcspResponse($ocspResponse);
127+
}
128+
129+
/**
130+
* Adds an CRL which will be embedded in the CMS structure.
131+
*
132+
* @param string|\SetaPDF_Signer_X509_Crl $crl
133+
*/
134+
public function addCrl($crl)
135+
{
136+
$this->padesModule->addCrl($crl);
137+
}
138+
106139
/**
107140
* @inheritDoc
108141
*/

0 commit comments

Comments
 (0)