No functional change.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 22 Jun 2011 16:53:58 +0000 (16:53 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 22 Jun 2011 16:53:58 +0000 (16:53 +0000)
Refactoring so all attributes are handled the same way.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138550 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java

index f9a5585..fb36edc 100644 (file)
@@ -283,13 +283,12 @@ public class JSSESocketFactory implements ServerSocketFactory, SSLUtil {
      * Gets the SSL server's keystore password.
      */
     protected String getKeystorePassword() {
-        String keyPass = endpoint.getKeyPass();
-        if (keyPass == null) {
-            keyPass = DEFAULT_KEY_PASS;
-        }
         String keystorePass = endpoint.getKeystorePass();
         if (keystorePass == null) {
-            keystorePass = keyPass;
+            keystorePass = endpoint.getKeyPass();
+        }
+        if (keystorePass == null) {
+            keystorePass = DEFAULT_KEY_PASS;
         }
         return keystorePass;
     }