Hi,

I had some trouble getting Tomcat to use the keystoreFile,
keystoreType and keystorePass attributes under the Connector element from
its config file. Upon a little research, I realized that they were not
being used at all so I made the fix. This allows you to specify
different keystore files/types/passwords for each Connector.

I attached the diffs of the 4.1.18 dist.. but I checked in the CVS tree
and it hasn't been changed there either. 

Forgive the newbie question, but is there an easy/fast way/configuration 
to cvs co all the modules and compile them? I was going one-by-one until I 
got frustrated -- hopefully the old diff doesn't annoy anyone. Feel free
to respond directly if you have a good resource.

thanks, Kevin

--- CoyoteConnector.java        2003-03-12 16:14:03.000000000 -0800
+++ CoyoteConnector.java.orig   2003-03-12 16:13:13.000000000 -0800
@@ -329,76 +329,9 @@
      */
     private Adapter adapter = null;
 
-    /** 
-     * Coyote keystore file 
-     */
-
-    private String keystoreFile = null;
-
-    /** 
-     * Coyote keystore file type
-     */
-    
-    private String keystoreType = null;
-
-    /** 
-     * Coyote keystore file password
-     */
-
-    private String keystorePass = null;
-
 
     // ------------------------------------------------------------- Properties
 
-    /**
-     * Get the KeystoreFile value.
-     * @return the KeystoreFile value.
-     */
-    public String getKeystoreFile() {
-       return keystoreFile;
-    }
-
-    /**
-     * Set the KeystoreFile value.
-     * @param newKeystoreFile The new KeystoreFile value.
-     */
-    public void setKeystoreFile(String newKeystoreFile) {
-       this.keystoreFile = newKeystoreFile;
-    }
-
-    /**
-     * Get the KeystoreType value.
-     * @return the KeystoreType value.
-     */
-    public String getKeystoreType() {
-       return keystoreType;
-    }
-
-    /**
-     * Set the KeystoreType value.
-     * @param newKeystoreType The new KeystoreType value.
-     */
-    public void setKeystoreType(String newKeystoreType) {
-       this.keystoreType = newKeystoreType;
-    }
-
-    /**
-     * Get the KeystorePass value.
-     * @return the KeystorePass value.
-     */
-
-    public String getKeystorePass() {
-       return keystorePass;
-    }
-
-    /**
-     * Set the KeystorePass value.
-     * @param newKeystorePass The new KeystorePass value.
-     */
-    public void setKeystorePass(String newKeystorePass) {
-       this.keystorePass = newKeystorePass;
-    }
-    
 
     /**
      * Return the <code>Service</code> with which we are associated (if any).
@@ -1075,16 +1008,16 @@
                                                "" + ssf.getClientAuth());
             }
             IntrospectionUtils.setProperty(protocolHandler, "keystore", 
-                                           (this.keystoreFile == null) ? 
ssf.getKeystoreFile() : keystoreFile);
+                                           ssf.getKeystoreFile());
             IntrospectionUtils.setProperty(protocolHandler, "randomfile", 
                                            ssf.getRandomFile());
             IntrospectionUtils.setProperty(protocolHandler, "rootfile", 
                                            ssf.getRootFile());
                        
             IntrospectionUtils.setProperty(protocolHandler, "keypass", 
-                                           (this.keystorePass == null) ? 
ssf.getKeystorePass() : keystorePass);
+                                           ssf.getKeystorePass());
             IntrospectionUtils.setProperty(protocolHandler, "keytype", 
-                                           (this.keystoreType == null) ? 
ssf.getKeystoreType() : keystoreType);
+                                           ssf.getKeystoreType());
             IntrospectionUtils.setProperty(protocolHandler, "protocol", 
                                            ssf.getProtocol());
             IntrospectionUtils.setProperty(protocolHandler, 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to