summaryrefslogtreecommitdiff
path: root/bkucommon
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-02-01 15:48:59 (GMT)
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-02-01 15:48:59 (GMT)
commitd370f68a9e011108656bc2c1c0b6647d3d69aa65 (patch)
treec990433cf169c2eeda8306257bb6ed9a6c2bb9e2 /bkucommon
parent99263a2c36c7241f16385d46ecb7a782dc146303 (diff)
downloadmocca-d370f68a9e011108656bc2c1c0b6647d3d69aa65.zip
mocca-d370f68a9e011108656bc2c1c0b6647d3d69aa65.tar.gz
mocca-d370f68a9e011108656bc2c1c0b6647d3d69aa65.tar.bz2
Switched PKI configuration to prefer OCSP over CRL.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@616 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/conf/CertValidatorImpl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/conf/CertValidatorImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/conf/CertValidatorImpl.java
index 3b2d1b9..766fe35 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/conf/CertValidatorImpl.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/conf/CertValidatorImpl.java
@@ -11,6 +11,7 @@ import iaik.pki.PKIException;
import iaik.pki.PKIFactory;
import iaik.pki.PKIModule;
import iaik.pki.PKIProfile;
+import iaik.pki.revocation.RevocationSourceTypes;
import iaik.pki.store.certstore.CertStoreParameters;
import iaik.pki.store.certstore.directory.DefaultDirectoryCertStoreParameters;
import iaik.pki.store.truststore.DefaultTrustStoreProfile;
@@ -84,6 +85,8 @@ public class CertValidatorImpl implements CertValidator {
TrustStoreTypes.DIRECTORY, caDir.getAbsolutePath());
profile = new DefaultPKIProfile(trustProfile);
((DefaultPKIProfile)profile).setAutoAddCertificates(true);
+ ((DefaultPKIProfile) profile).setPreferredServiceOrder(new String[] {
+ RevocationSourceTypes.OCSP, RevocationSourceTypes.CRL });
}
/* (non-Javadoc)