You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2019/04/17 15:44:18 UTC
[directory-server] 01/08: Added the apacheds.ks KeyStore file in
InstanceLayout
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git
commit 3b763efb89e4c8d1437511439332f72b75ae4d52
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Feb 11 06:01:59 2019 +0100
Added the apacheds.ks KeyStore file in InstanceLayout
---
.../apache/directory/server/core/api/InstanceLayout.java | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/core-api/src/main/java/org/apache/directory/server/core/api/InstanceLayout.java b/core-api/src/main/java/org/apache/directory/server/core/api/InstanceLayout.java
index 819635b..d29f4bb 100644
--- a/core-api/src/main/java/org/apache/directory/server/core/api/InstanceLayout.java
+++ b/core-api/src/main/java/org/apache/directory/server/core/api/InstanceLayout.java
@@ -39,6 +39,8 @@ import java.io.File;
* | +-- wrapper.conf
* | |
* | +-- log4j.properties
+ * | |
+ * | +-- <keystore file>
* |
* +-- partitions/
* | |
@@ -92,6 +94,7 @@ public class InstanceLayout extends AbstractLayout
private static final String LOG4J_PROPERTIES = "log4j.properties";
private static final String WRAPPER_CONF = "wrapper.conf";
private static final String CONFIG_LDIF = "config.ldif";
+ private static final String KEYSTORE_FILE = "apacheds.ks";
/** The Log directory */
private File logDir;
@@ -354,6 +357,17 @@ public class InstanceLayout extends AbstractLayout
/**
+ * Gets the apacheds KeyStore file (<em>'<instance>/conf/apacheds.ks'</em>).
+ *
+ * @return the apacheds KeyWStore file
+ */
+ public File getKeyStoreFile()
+ {
+ return new File( getConfDirectory(), KEYSTORE_FILE );
+ }
+
+
+ /**
* Gets the 'replication' directory where replication journals are stored
* (<em>'<instance>/syncrepl-data'</em>).
*