File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,14 @@ public function setCertificate($certificate)
264264 $ this ->padesModule ->setCertificate ($ certificate );
265265 }
266266
267+ /**
268+ * @return \SetaPDF_Signer_X509_Certificate|string
269+ */
270+ public function getCertificate ()
271+ {
272+ return $ this ->padesModule ->getCertificate ();
273+ }
274+
267275 /**
268276 * @param string $signatureAlgorithmOid
269277 */
@@ -349,7 +357,7 @@ public function getCms()
349357 public function createSignature (SetaPDF_Core_Reader_FilePath $ tmpPath )
350358 {
351359 // ensure certificate
352- $ certificate = $ this ->padesModule -> getCertificate ();
360+ $ certificate = $ this ->getCertificate ();
353361 if ($ certificate === null ) {
354362 throw new \BadMethodCallException ('Missing certificate! ' );
355363 }
You can’t perform that action at this time.
0 commit comments