diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-07-14 13:04:58 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-07-14 13:04:58 +0200 |
commit | 81fe4613b2e26d6bb04893a9160d21225c072b33 (patch) | |
tree | c054902b24ff00bfedfbd7fff992335cc108fbd2 /pdf-as-lib/src/main/java/at/gv/egiz/sl/util | |
parent | bccb1f7c2595611eeaa66b4a85dc0529bcb2522f (diff) | |
download | pdf-as-4-81fe4613b2e26d6bb04893a9160d21225c072b33.tar.gz pdf-as-4-81fe4613b2e26d6bb04893a9160d21225c072b33.tar.bz2 pdf-as-4-81fe4613b2e26d6bb04893a9160d21225c072b33.zip |
Changed API iaik Certificate to Java Certificate
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/sl/util')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java | 2 | ||||
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/sl/util/MOAConnector.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java index 077f2f9b..82dc0602 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java @@ -93,7 +93,7 @@ public class ISignatureConnectorSLWrapper implements ISignatureConnector { VerifyResult verifyResult = SignatureUtils.verifySignature(response.getCMSSignature(), input); if(!StreamUtils.dataCompare(requestedSignature.getCertificate().getFingerprintSHA(), - verifyResult.getSignerCertificate().getFingerprintSHA())) { + ((X509Certificate)verifyResult.getSignerCertificate()).getFingerprintSHA())) { throw new PdfAsSignatureException("Certificates missmatch!"); } diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/MOAConnector.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/MOAConnector.java index 1059dba1..70b40876 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/MOAConnector.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/MOAConnector.java @@ -231,7 +231,7 @@ public class MOAConnector implements ISignatureConnector { VerifyResult verifyResult = SignatureUtils.verifySignature(cmsSignatureData, input); if(!StreamUtils.dataCompare(requestedSignature.getCertificate().getFingerprintSHA(), - verifyResult.getSignerCertificate().getFingerprintSHA())) { + ((X509Certificate)verifyResult.getSignerCertificate()).getFingerprintSHA())) { throw new PdfAsSignatureException("Certificates missmatch!"); } |