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/04/08 01:38:09 UTC

[james-project] 04/08: JAMES-3738 Encryption: static methods comes first

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 8692d3710d9fcd2904b6e87b9d8a5fe0abc46131
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Mar 23 10:26:06 2022 +0700

    JAMES-3738 Encryption: static methods comes first
---
 .../apache/james/protocols/netty/Encryption.java   | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/protocols/netty/src/main/java/org/apache/james/protocols/netty/Encryption.java b/protocols/netty/src/main/java/org/apache/james/protocols/netty/Encryption.java
index f45bed3682..c56742a991 100644
--- a/protocols/netty/src/main/java/org/apache/james/protocols/netty/Encryption.java
+++ b/protocols/netty/src/main/java/org/apache/james/protocols/netty/Encryption.java
@@ -32,18 +32,6 @@ import io.netty.handler.ssl.SslHandler;
  */
 public final class Encryption {
 
-    private final SSLContext context;
-    private final boolean starttls;
-    private final String[] enabledCipherSuites;
-    private final ClientAuth clientAuth;
-
-    private Encryption(SSLContext context, boolean starttls, String[] enabledCipherSuites, ClientAuth clientAuth) {
-        this.context = context;
-        this.starttls = starttls;
-        this.enabledCipherSuites = enabledCipherSuites;
-        this.clientAuth = clientAuth;
-    }
-
     public static Encryption createTls(SSLContext context) {
         return createTls(context, null, ClientAuth.NONE);
     }
@@ -78,6 +66,18 @@ public final class Encryption {
         return new Encryption(context, true, enabledCipherSuites, clientAuth);
     }
 
+    private final SSLContext context;
+    private final boolean starttls;
+    private final String[] enabledCipherSuites;
+    private final ClientAuth clientAuth;
+
+    private Encryption(SSLContext context, boolean starttls, String[] enabledCipherSuites, ClientAuth clientAuth) {
+        this.context = context;
+        this.starttls = starttls;
+        this.enabledCipherSuites = enabledCipherSuites;
+        this.clientAuth = clientAuth;
+    }
+
     /**
      * Return the {@link SSLContext} to use
      * 


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org