From 35a4e8a46adf60988cc29fd82c0115126c1660a3 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Tue, 22 Sep 2026 09:07:01 +0000
Subject: [PATCH] [#992] Apply the confidentiality of a backend index to the running backend (#1000)
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
index 4c6d71b..5825abe 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
@@ -565,6 +565,20 @@
config.getCipherKeyLength(), confidentiality);
}
+ /**
+ * Puts the confidentiality the configuration of a backend index asks for in force on the
+ * {@link CryptoSuite} the indexes of that attribute share, keeping the cipher of this backend.
+ *
+ * @param indexCrypto
+ * the crypto suite the indexes of one attribute were opened with
+ * @param confidentiality
+ * whether what those indexes store has to be encrypted from now on
+ */
+ void setIndexConfidentiality(CryptoSuite indexCrypto, boolean confidentiality)
+ {
+ indexCrypto.newParameters(config.getCipherTransformation(), config.getCipherKeyLength(), confidentiality);
+ }
+
private AttributeIndex newAttributeIndex(BackendIndexCfg cfg, CryptoSuite cryptoSuite) throws ConfigException
{
return new AttributeIndex(cfg, state, this, cryptoSuite);
--
Gitblit v1.10.0