tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From schu...@apache.org
Subject svn commit: r1847320 - /tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
Date Fri, 23 Nov 2018 21:25:37 GMT
Author: schultz
Date: Fri Nov 23 21:25:37 2018
New Revision: 1847320

URL: http://svn.apache.org/viewvc?rev=1847320&view=rev
Log:
Simplify. Re-name method that no longer actually initializes any ciphers.

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java

Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java?rev=1847320&r1=1847319&r2=1847320&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
Fri Nov 23 21:25:37 2018
@@ -73,12 +73,7 @@ public class EncryptInterceptor extends
     @Override
     public void start(int svc) throws ChannelException {
         if(Channel.SND_TX_SEQ == (svc & Channel.SND_TX_SEQ)) {
-            try {
-                initCiphers();
-            } catch (GeneralSecurityException gse) {
-                log.fatal(sm.getString("encryptInterceptor.init.failed"));
-                throw new ChannelException(sm.getString("encryptInterceptor.init.failed"),
gse);
-            }
+            initInternal();
         }
 
         super.start(svc);
@@ -274,7 +269,7 @@ public class EncryptInterceptor extends
         return algorithmName;
     }
 
-    private void initCiphers() throws GeneralSecurityException {
+    private void initInternal() {
         if(null == getEncryptionKey())
             throw new IllegalStateException(sm.getString("encryptInterceptor.key.required"));
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message