From 7916c117627db0411b35f202f88b2ab6e115361a Mon Sep 17 00:00:00 2001
From: "(no author)" <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>
Date: Fri, 28 Jan 2005 14:10:50 +0000
Subject: This commit was manufactured by cvs2svn to create tag
'MOA-ID-1_20d09'.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/MOA-ID-1_20d09@264 d688527b-c9ab-4aba-bd8d-4036d912da1d
---
.../moa/spss/server/iaik/pki/PKIProfileImpl.java | 127 ---------------------
.../pki/pathvalidation/ValidationProfileImpl.java | 113 ------------------
.../iaik/pki/revocation/RevocationProfileImpl.java | 65 -----------
.../store/truststore/TrustStoreProfileImpl.java | 119 -------------------
4 files changed, 424 deletions(-)
delete mode 100644 spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/PKIProfileImpl.java
delete mode 100644 spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/pathvalidation/ValidationProfileImpl.java
delete mode 100644 spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/revocation/RevocationProfileImpl.java
delete mode 100644 spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/store/truststore/TrustStoreProfileImpl.java
(limited to 'spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki')
diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/PKIProfileImpl.java b/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/PKIProfileImpl.java
deleted file mode 100644
index c204eface..000000000
--- a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/PKIProfileImpl.java
+++ /dev/null
@@ -1,127 +0,0 @@
-package at.gv.egovernment.moa.spss.server.iaik.pki;
-
-import iaik.pki.PKIProfile;
-import iaik.pki.pathvalidation.ValidationProfile;
-import iaik.pki.revocation.RevocationProfile;
-import iaik.pki.store.truststore.TrustStoreProfile;
-
-import at.gv.egovernment.moa.util.BoolUtils;
-
-import at.gv.egovernment.moa.spss.MOAApplicationException;
-import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
-import at.gv.egovernment.moa.spss.server.iaik.pki.pathvalidation.ValidationProfileImpl;
-import at.gv.egovernment.moa.spss.server.iaik.pki.revocation.RevocationProfileImpl;
-import at.gv.egovernment.moa.spss.server.iaik.pki.store.truststore.TrustStoreProfileImpl;
-
-/**
- * Implementation of the PKIProfile
interface containing
- * information needed for certificate path validation. It uses configuration
- * data from the MOA configuration.
- *
- * @author Patrick Peck
- * @version $Id$
- */
-public class PKIProfileImpl implements PKIProfile {
-
- /** Profile information for revocation checking. */
- private RevocationProfile revocationProfile;
- /** Profile information about the trust profile to use. */
- private TrustStoreProfile trustStoreProfile;
- /** Profile information about the certificate validation. */
- private ValidationProfile validationProfile;
- /** The ConfigurationProvider
to read the MOA configuration data
- * from. */
- private ConfigurationProvider config;
-
- /**
- * Create a new PKIProfileImpl
.
- *
- * @param config The MOA configuration providing configuration data about
- * certificate path validation.
- * @param trustProfileID The trust profile ID denoting the location of the
- * trust store.
- * @throws MOAApplicationException An error occurred building the profile.
- */
- public PKIProfileImpl(ConfigurationProvider config, String trustProfileID)
- throws MOAApplicationException {
-
- this.config = config;
- setRevocationProfile(new RevocationProfileImpl(config));
- setTrustStoreProfile(new TrustStoreProfileImpl(config, trustProfileID));
- setValidationProfile(new ValidationProfileImpl(config));
- }
-
- /**
- * @see iaik.pki.PKIProfile#autoAddCertificates()
- */
- public boolean autoAddCertificates() {
- String boolStr =
- config.getGenericConfiguration(
- ConfigurationProvider.AUTO_ADD_CERTIFICATES_PROPERTY,
- "true");
- boolean boolValue = BoolUtils.valueOf(boolStr);
-
- return useAuthorityInfoAccess() ? true : boolValue;
- }
-
- /**
- * @see iaik.pki.PKIProfile#getRevocationProfile()
- */
- public RevocationProfile getRevocationProfile() {
- return revocationProfile;
- }
-
- /**
- * Sets the RevocationProfile
.
- *
- * @param revocationProfile The RevocationProfile
used for
- * revocation checking.
- */
- protected void setRevocationProfile(RevocationProfile revocationProfile) {
- this.revocationProfile = revocationProfile;
- }
-
- /**
- * @see iaik.pki.PKIProfile#getTrustStoreProfile()
- */
- public TrustStoreProfile getTrustStoreProfile() {
- return trustStoreProfile;
- }
-
- /**
- * Sets the TrustStoreProfile
.
- *
- * @param trustStoreProfile The TrustStoreProfile
.
- */
- protected void setTrustStoreProfile(TrustStoreProfile trustStoreProfile) {
- this.trustStoreProfile = trustStoreProfile;
- }
-
- /**
- * @see iaik.pki.PKIProfile#getValidationProfile()
- */
- public ValidationProfile getValidationProfile() {
- return validationProfile;
- }
-
- /**
- * Sets the ValidationProfile
.
- *
- * @param validationProfile The ValidationProfile
to set.
- */
- protected void setValidationProfile(ValidationProfile validationProfile) {
- this.validationProfile = validationProfile;
- }
-
- /**
- * @see iaik.pki.PKIProfile#useAuthorityInfoAccess()
- */
- public boolean useAuthorityInfoAccess() {
- String boolStr =
- config.getGenericConfiguration(
- ConfigurationProvider.USE_AUTHORITY_INFO_ACCESS_PROPERTY,
- "true");
- return BoolUtils.valueOf(boolStr);
- }
-
-}
diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/pathvalidation/ValidationProfileImpl.java b/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/pathvalidation/ValidationProfileImpl.java
deleted file mode 100644
index a2e3d6766..000000000
--- a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/pathvalidation/ValidationProfileImpl.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package at.gv.egovernment.moa.spss.server.iaik.pki.pathvalidation;
-
-import iaik.pki.pathvalidation.ValidationProfile;
-
-import at.gv.egovernment.moa.util.BoolUtils;
-
-import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
-
-import java.util.Collections;
-import java.util.Set;
-
-/**
- * An implementation of the ValidationProfile
interface providing
- * information about certificat path validation.
- *
- * @author Patrick Peck
- * @version $Id$
- */
-public class ValidationProfileImpl implements ValidationProfile {
-
- /** The ConfigurationProvider
to read the configuration data
- * from. */
- private ConfigurationProvider config;
- private boolean initialAnyPolicyInhibit;
- private boolean initialExplicitPolicy;
- private boolean initialPolicyMappingInhibit;
- private Set initialPolicySet;
- private boolean nameConstraintsProcessing;
- private boolean policyProcessing;
-
- /**
- * Create a new ValidationProfileImpl
object.
- *
- * This objects's fields are preset to the following values:
- *
- *
initialAnyPolicyInhibit = true
initialExplicitPoliy = true
initialPolicyMappingInhibit = true
initialPolicySet = empty
policyProcessing = false
nameConstraintsProcessing = false
revocationChecking = false
RevocationProfile
interface providing
- * information about revocation status checking, based on MOA configuration
- * data.
- *
- * @author Patrick Peck
- * @version $Id$
- */
-public class RevocationProfileImpl implements RevocationProfile {
- /** The default service order. */
- private static final String[] DEFAULT_SERVICE_ORDER =
- { RevocationSourceTypes.CRL };
- /** The ConfigurationProvider
to read the MOA configuration data
- * from. */
- private ConfigurationProvider config;
- /** The OCSP request hash algorithm. */
- private String oCSPRequestHashAlgorithm;
-
- /**
- * Create a new RevocationProfileImpl
.
- *
- * @param config The MOA configuration data.
- */
- public RevocationProfileImpl(ConfigurationProvider config) {
- this.config = config;
- this.oCSPRequestHashAlgorithm = "";
- }
-
- /**
- * @see iaik.pki.revocation.RevocationProfile#getMaxRevocationAge(String)
- */
- public long getMaxRevocationAge(String distributionPointUri) {
- String maxRevocationAgeStr =
- config.getGenericConfiguration(
- ConfigurationProvider.MAX_REVOCATION_AGE_PROPERTY,
- "0");
- long revocationAge = Long.parseLong(maxRevocationAgeStr);
-
- return revocationAge;
- }
-
- /**
- * @see iaik.pki.revocation.RevocationProfile#getOCSPRequestHashAlgorithm()
- */
- public String getOCSPRequestHashAlgorithm() {
- return oCSPRequestHashAlgorithm;
- }
-
- /**
- * @see iaik.pki.revocation.RevocationProfile#getPreferredServiceOrder(java.security.cert.X509Certificate)
- */
- public String[] getPreferredServiceOrder(X509Certificate cert) {
- return DEFAULT_SERVICE_ORDER;
- }
-
-}
diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/store/truststore/TrustStoreProfileImpl.java b/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/store/truststore/TrustStoreProfileImpl.java
deleted file mode 100644
index 8a1161b95..000000000
--- a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/pki/store/truststore/TrustStoreProfileImpl.java
+++ /dev/null
@@ -1,119 +0,0 @@
-package at.gv.egovernment.moa.spss.server.iaik.pki.store.truststore;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import iaik.pki.store.truststore.TrustStoreProfile;
-import iaik.pki.store.truststore.TrustStoreTypes;
-import iaik.servertools.observer.NotificationData;
-import iaik.servertools.observer.Observer;
-
-import at.gv.egovernment.moa.spss.MOAApplicationException;
-import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
-import at.gv.egovernment.moa.spss.server.config.TrustProfile;
-
-/**
- * An implementation of the TrustStoreProfile
interface, using data
- * from the MOA configuration.
- *
- * @see iaik.pki.store.truststore.TrustStoreProfile
- * @author Patrick Peck
- * @version $Id$
- */
-public class TrustStoreProfileImpl implements TrustStoreProfile {
-
- /** The observers of this profile. */
- private List observers = new ArrayList();
- /** The type of the trust profile. */
- private String type;
- /** The URI of the trust profile.*/
- private String URI;
-
- /**
- * Create a new TrustStoreProfileImpl
.
- *
- * @param config The MOA configuration data, from which trust store
- * configuration data is read.
- * @param trustProfileId The trust profile id on which this
- * TrustStoreProfile
is based.
- * @throws MOAApplicationException The trustProfileId
could not
- * be found in the MOA configuration.
- */
- public TrustStoreProfileImpl(
- ConfigurationProvider config,
- String trustProfileId)
- throws MOAApplicationException {
-
- TrustProfile tp = (TrustProfile) config.getTrustProfile(trustProfileId);
- if (tp != null) {
- setURI(tp.getUri());
- setType(TrustStoreTypes.DIRECTORY);
- } else {
- throw new MOAApplicationException(
- "2203",
- new Object[] { trustProfileId });
- }
- }
-
- /**
- * @see iaik.pki.store.truststore.TrustStoreProfile#getType()
- */
- public String getType() {
- return type;
- }
-
- /**
- * Sets the the trust store type.
- *
- * @param type The trust store type to set.
- */
- protected void setType(String type) {
- this.type = type;
- }
-
- /**
- * @see iaik.pki.store.truststore.TrustStoreProfile#getURI()
- */
- public String getURI() {
- return URI;
- }
-
- /**
- * Sets the trust store URI.
- *
- * @param URI The trust store URI to set.
- */
- protected void setURI(String URI) {
- this.URI = URI;
- }
-
- //
- // Methods of iaik.utils.observer.Observable interface
- //
-
- /**
- * @see iaik.utils.observer.Observable#addObserver(Observer)
- */
- public void addObserver(Observer observer) {
- observers.add(observer);
- }
-
- /**
- * @see iaik.utils.observer.Observable#removeObserver(Observer)
- */
- public boolean removeObserver(Observer observer) {
- return observers.remove(observer);
- }
-
- /**
- * @see iaik.utils.observer.Observable#notify(NotificationData)
- */
- public void notify(NotificationData notificationData) {
- for (Iterator iter = observers.iterator(); iter.hasNext();) {
- Observer observer = (Observer) iter.next();
- observer.notify(notificationData);
- }
- }
-
-}
--
cgit v1.2.3