You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/03/22 02:01:35 UTC
[james-project] 04/29: JAMES-3639 AbstractConfigurableAsyncServer: Remove no longer used x509Algorithm
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit fee18d4c1e2b92f39b79fb0356074342e0631829
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Feb 27 20:34:11 2022 +0700
JAMES-3639 AbstractConfigurableAsyncServer: Remove no longer used x509Algorithm
---
.../org/apache/james/protocols/netty/AbstractAsyncServer.java | 3 +--
.../protocols/lib/netty/AbstractConfigurableAsyncServer.java | 9 ---------
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java b/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java
index 52371d8..e723546 100644
--- a/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java
+++ b/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java
@@ -50,7 +50,6 @@ public abstract class AbstractAsyncServer implements ProtocolServer {
private volatile int timeout = 120;
- private ServerBootstrap bootstrap;
private EventLoopGroup bossGroup;
private EventLoopGroup workerGroup;
@@ -89,7 +88,7 @@ public abstract class AbstractAsyncServer implements ProtocolServer {
throw new RuntimeException("Please specify at least on socketaddress to which the server should get bound!");
}
- bootstrap = new ServerBootstrap();
+ ServerBootstrap bootstrap = new ServerBootstrap();
bootstrap.channel(NioServerSocketChannel.class);
bossGroup = new NioEventLoopGroup();
diff --git a/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java b/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java
index c85cf5d..1ccbd84 100644
--- a/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java
+++ b/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/netty/AbstractConfigurableAsyncServer.java
@@ -81,14 +81,6 @@ public abstract class AbstractConfigurableAsyncServer extends AbstractAsyncServe
public static final String HELLO_NAME = "helloName";
public static final int DEFAULT_MAX_EXECUTOR_COUNT = 16;
-
- // By default, use the Sun X509 algorithm that comes with the Sun JCE
- // provider for SSL
- // certificates
- private static final String defaultX509algorithm = "SunX509";
-
- // The X.509 certificate algorithm
- private String x509Algorithm = defaultX509algorithm;
private FileSystem fileSystem;
@@ -263,7 +255,6 @@ public abstract class AbstractConfigurableAsyncServer extends AbstractAsyncServe
throw new ConfigurationException("keystore or (privateKey and certificates) needs to get configured");
}
secret = config.getString("tls.secret", null);
- x509Algorithm = config.getString("tls.algorithm", defaultX509algorithm);
truststore = config.getString("tls.clientAuth.truststore", null);
truststoreType = config.getString("tls.clientAuth.truststoreType", "JKS");
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org