| | |
| | | import org.opends.server.api.VirtualAttributeProvider; |
| | | import org.opends.server.backends.ChangelogBackend; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.crypto.CryptoSuite; |
| | | import org.opends.server.replication.common.CSN; |
| | | import org.opends.server.replication.common.MultiDomainServerState; |
| | | import org.opends.server.replication.common.ServerState; |
| | |
| | | */ |
| | | private static final List<ReplicationServer> allInstances = new ArrayList<>(); |
| | | |
| | | private final CryptoSuite cryptoSuite; |
| | | |
| | | /** |
| | | * Creates a new Replication server using the provided configuration entry. |
| | | * |
| | |
| | | this.domainPredicate = predicate; |
| | | |
| | | enableExternalChangeLog(); |
| | | this.changelogDB = new FileChangelogDB(this, config.getReplicationDBDirectory()); |
| | | cryptoSuite = DirectoryServer.getInstance().getServerContext().getCryptoManager(). |
| | | newCryptoSuite(cfg.getCipherTransformation(), cfg.getCipherKeyLength(), cfg.isConfidentialityEnabled()); |
| | | |
| | | this.changelogDB = new FileChangelogDB(this, config.getReplicationDBDirectory(), cryptoSuite); |
| | | |
| | | replSessionSecurity = new ReplSessionSecurity(); |
| | | initialize(); |
| | |
| | | } |
| | | } |
| | | |
| | | cryptoSuite.newParameters(config.getCipherTransformation(), config.getCipherKeyLength(), |
| | | config.isConfidentialityEnabled()); |
| | | |
| | | // changing the listen port requires to stop the listen thread |
| | | // and restart it. |
| | | if (getReplicationPort() != oldConfig.getReplicationPort()) |
| | |
| | | return MultimasterReplication.isECLEnabled(); |
| | | } |
| | | |
| | | /** |
| | | * Return whether change-log records should be encrypted. |
| | | * @return trus if change-log records should be encrypted |
| | | */ |
| | | public boolean isEncrypted() |
| | | { |
| | | return config.isConfidentialityEnabled(); |
| | | } |
| | | |
| | | @Override |
| | | public String toString() |
| | | { |