Skip to content

Commit

Permalink
Added missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKresse committed Feb 2, 2021
1 parent 606a129 commit 8353a26
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,39 @@ public function getSignatureAlgorithm()
return $this->signatureAlgorithm;
}

/**
* Add additional certificates which are placed into the CMS structure.
*
* @param array|\SetaPDF_Signer_X509_Collection $extraCertificates PEM encoded certificates or pathes to PEM encoded
* certificates.
* @throws \SetaPDF_Signer_Asn1_Exception
*/
public function setExtraCertificates($extraCertificates)
{
$this->padesModule->setExtraCertificates($extraCertificates);
}

/**
* Adds an OCSP response which will be embedded in the CMS structure.
*
* @param string|\SetaPDF_Signer_Ocsp_Response $ocspResponse DER encoded OCSP response or OCSP response instance.
* @throws SetaPDF_Signer_Exception
*/
public function addOcspResponse($ocspResponse)
{
$this->padesModule->addOcspResponse($ocspResponse);
}

/**
* Adds an CRL which will be embedded in the CMS structure.
*
* @param string|\SetaPDF_Signer_X509_Crl $crl
*/
public function addCrl($crl)
{
$this->padesModule->addCrl($crl);
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 8353a26

Please sign in to comment.