mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
yesterday 35a4e8a46adf60988cc29fd82c0115126c1660a3
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);