From bbe08d3d2412911ec2f4c5bc8f2a3db8217dc2c3 Mon Sep 17 00:00:00 2001 From: Adrian Lapierre Date: Sat, 4 Jan 2025 11:52:23 +0100 Subject: [PATCH] Refactor imports in Signer and CardSigner classes Reorganized and optimized import statements by removing unused imports and ensuring consistent structure. This improves code readability and maintains cleaner dependencies. No functional changes were made. --- .../alapierre/crypto/dss/pdf/signer/CardSigner.java | 11 ----------- .../io/alapierre/crypto/dss/pdf/signer/Signer.java | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/CardSigner.java b/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/CardSigner.java index b62c6a6..dc5c66e 100644 --- a/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/CardSigner.java +++ b/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/CardSigner.java @@ -1,18 +1,9 @@ package io.alapierre.crypto.dss.pdf.signer; -import eu.europa.esig.dss.enumerations.DigestAlgorithm; -import eu.europa.esig.dss.enumerations.SignatureLevel; -import eu.europa.esig.dss.enumerations.SignaturePackaging; import eu.europa.esig.dss.model.DSSDocument; import eu.europa.esig.dss.model.InMemoryDocument; -import eu.europa.esig.dss.model.SignatureValue; -import eu.europa.esig.dss.model.ToBeSigned; -import eu.europa.esig.dss.pades.PAdESSignatureParameters; -import eu.europa.esig.dss.pades.signature.PAdESService; -import eu.europa.esig.dss.token.DSSPrivateKeyEntry; import eu.europa.esig.dss.token.PasswordInputCallback; import eu.europa.esig.dss.token.Pkcs11SignatureToken; -import eu.europa.esig.dss.validation.CommonCertificateVerifier; import io.alapierre.crypto.dss.common.misc.DllUtil; import lombok.NonNull; import lombok.RequiredArgsConstructor; @@ -22,8 +13,6 @@ import java.io.InputStream; - -import static io.alapierre.crypto.dss.common.KeyUtil.*; import static io.alapierre.crypto.dss.common.misc.DllUtil.resolveDllAbsolutePathAndFileName; /** diff --git a/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/Signer.java b/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/Signer.java index c780802..9bbfd94 100644 --- a/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/Signer.java +++ b/digital-signature-master/digital-signature-pdf/src/main/java/io/alapierre/crypto/dss/pdf/signer/Signer.java @@ -8,9 +8,9 @@ import eu.europa.esig.dss.model.ToBeSigned; import eu.europa.esig.dss.pades.PAdESSignatureParameters; import eu.europa.esig.dss.pades.signature.PAdESService; +import eu.europa.esig.dss.spi.validation.CommonCertificateVerifier; import eu.europa.esig.dss.token.DSSPrivateKeyEntry; import eu.europa.esig.dss.token.SignatureTokenConnection; -import eu.europa.esig.dss.validation.CommonCertificateVerifier; import org.jetbrains.annotations.NotNull; import static io.alapierre.crypto.dss.common.KeyUtil.findValidKey;