aboutsummaryrefslogtreecommitdiff
path: root/id.server
diff options
context:
space:
mode:
authorrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-03-26 12:59:19 +0000
committerrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-03-26 12:59:19 +0000
commite9969dd0ddf49fa575c47600d773927aa5235a36 (patch)
treebc0080b0dffa6800eb1acb5b335539a2a3efd9d4 /id.server
parentc481189ca628995fb1d575f653c7d717d8216183 (diff)
downloadmoa-id-spss-e9969dd0ddf49fa575c47600d773927aa5235a36.tar.gz
moa-id-spss-e9969dd0ddf49fa575c47600d773927aa5235a36.tar.bz2
moa-id-spss-e9969dd0ddf49fa575c47600d773927aa5235a36.zip
Fix zu: https://labs.cio.gv.at/bugzilla/show_bug.cgi?id=112 (RSCH)
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@104 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java b/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java
index 012dbfbe3..c338e96fc 100644
--- a/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java
+++ b/id.server/src/at/gv/egovernment/moa/id/iaik/config/CertStoreConfigurationImpl.java
@@ -20,6 +20,8 @@ public class CertStoreConfigurationImpl extends ObservableImpl
implements CertStoreConfiguration, DirectoryCertStoreParameters {
/** identifies the rootDirectory */
private String rootDirectory;
+ /** ConfigurationProvider */
+ private ConfigurationProvider conf;
/** Array for storing all CertStoreParameters */
private CertStoreParameters[] parameters;
@@ -31,17 +33,15 @@ public class CertStoreConfigurationImpl extends ObservableImpl
* being read.
*/
public CertStoreConfigurationImpl(ConfigurationProvider conf) throws ConfigurationException {
+ this.conf=conf;
String paramName = ConfigurationProvider.DIRECTORY_CERTSTORE_PARAMETER_PROPERTY;
String certStoreRootDirParam = conf.getGenericConfigurationParameter(paramName);
if (certStoreRootDirParam == null)
throw new ConfigurationException(
"config.08", new Object[] {paramName});
- System.out.print("certStoreRootDirParam: " + certStoreRootDirParam);
- System.out.print("configRootDirectory: " + getRootDirectory());
-
- rootDirectory = FileUtils.makeAbsoluteURL(certStoreRootDirParam, getRootDirectory());
-
+ rootDirectory = FileUtils.makeAbsoluteURL(certStoreRootDirParam, conf.getRootConfigFileDir());
+ if(rootDirectory.startsWith("file:")) rootDirectory = rootDirectory.substring(6);
File f = new File(rootDirectory);
if (!f.isDirectory())
throw new ConfigurationException(