Skip to content

Commit f705ae0

Browse files
committed
chore: add pending change after backport
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 61c0fca commit f705ae0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

3rdparty

lib/Handler/SignEngine/JSignPdfHandler.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@ private function getHashAlgorithm(): string {
154154
return 'SHA256';
155155
}
156156

157+
private function getCertificationLevel(): ?string {
158+
if (!$this->docMdpConfigService->isEnabled()) {
159+
return null;
160+
}
161+
162+
return $this->docMdpConfigService->getLevel()->name;
163+
}
164+
165+
#[\Override]
157166
public function sign(): File {
158167
$this->beforeSign();
159168

@@ -162,6 +171,7 @@ public function sign(): File {
162171
return $this->getInputFile();
163172
}
164173

174+
#[\Override]
165175
public function getSignedContent(): string {
166176
$param = $this->getJSignParam()
167177
->setCertificate($this->getCertificate())
@@ -287,6 +297,7 @@ private function getScaleFactor(float $width): float {
287297
}
288298

289299

300+
#[\Override]
290301
public function readCertificate(): array {
291302
$result = $this->certificateEngineFactory
292303
->getEngine()

0 commit comments

Comments
 (0)