tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1737347 - /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
Date Fri, 01 Apr 2016 11:28:13 GMT
Author: olamy
Date: Fri Apr  1 11:28:13 2016
New Revision: 1737347

URL: http://svn.apache.org/viewvc?rev=1737347&view=rev
Log:
fix https://github.com/apache/tomcat-maven-plugin/pull/12

Signed-off-by: olivier lamy <olamy@apache.org>

Modified:
    tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java

Modified: tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java?rev=1737347&r1=1737346&r2=1737347&view=diff
==============================================================================
--- tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
(original)
+++ tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
Fri Apr  1 11:28:13 2016
@@ -287,6 +287,15 @@ public abstract class AbstractRunMojo
     private boolean ignorePackaging;
 
     /**
+     * enable client authentication for https (if configured)
+     * see <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL_Support">http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL_Support</a>
+     *
+     * @since 2.3
+     */
+    @Parameter(property = "maven.tomcat.https.clientAuth", defaultValue = "false")
+    private String clientAuth;
+
+    /**
      * Override the default keystoreFile for the HTTPS connector (if enabled)
      *
      * @since 1.1
@@ -978,6 +987,7 @@ public abstract class AbstractRunMojo
                         httpsConnector.setAttribute( "truststoreProvider", truststoreProvider
);
                     }
 
+                    httpsConnector.setAttribute("clientAuth", clientAuth);
                     httpsConnector.setUseBodyEncodingForURI( this.useBodyEncodingForURI );
 
                     if ( address != null )



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


Mime
View raw message