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;