mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
chore: add pending change after backport
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
61c0fca704
commit
f705ae0b12
2 changed files with 12 additions and 1 deletions
2
3rdparty
2
3rdparty
|
|
@ -1 +1 @@
|
|||
Subproject commit 9a439c98706c34ba69e56f3fb4035ef4fbbb1bf1
|
||||
Subproject commit 5f2191a2d0bde947295af496a70f2041eacb1d8b
|
||||
|
|
@ -154,6 +154,15 @@ class JSignPdfHandler extends Pkcs12Handler {
|
|||
return 'SHA256';
|
||||
}
|
||||
|
||||
private function getCertificationLevel(): ?string {
|
||||
if (!$this->docMdpConfigService->isEnabled()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->docMdpConfigService->getLevel()->name;
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function sign(): File {
|
||||
$this->beforeSign();
|
||||
|
||||
|
|
@ -162,6 +171,7 @@ class JSignPdfHandler extends Pkcs12Handler {
|
|||
return $this->getInputFile();
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getSignedContent(): string {
|
||||
$param = $this->getJSignParam()
|
||||
->setCertificate($this->getCertificate())
|
||||
|
|
@ -287,6 +297,7 @@ class JSignPdfHandler extends Pkcs12Handler {
|
|||
}
|
||||
|
||||
|
||||
#[\Override]
|
||||
public function readCertificate(): array {
|
||||
$result = $this->certificateEngineFactory
|
||||
->getEngine()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue