[Jboss-cvs] JBossAS SVN: r55383 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/web/test/ssl

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 7 17:12:24 EDT 2006


Author: anil.saldhana at jboss.com
Date: 2006-08-07 17:12:23 -0400 (Mon, 07 Aug 2006)
New Revision: 55383

Modified:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/web/test/ssl/SSLUnitTestCase.java
Log:
JBAS-3369: test encrypting keystorepass in tomcat connector

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/web/test/ssl/SSLUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/web/test/ssl/SSLUnitTestCase.java	2006-08-07 20:34:59 UTC (rev 55382)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/web/test/ssl/SSLUnitTestCase.java	2006-08-07 21:12:23 UTC (rev 55383)
@@ -32,6 +32,7 @@
 /** Tests of ssl and CLIENT-CERT auth
  * 
  * @author Scott.Stark at jboss.org
+ * @author Anil.Saldhana at jboss.org
  * @version $Revision$
  */
 public class SSLUnitTestCase extends JBossTestCase
@@ -76,6 +77,7 @@
       log.info("+++ testHttps");
       doHttps(baseHttpsNoAuth);
    }
+   
    public void testHttpsSecurityDomain() throws Exception
    {
       log.info("+++ testHttps");
@@ -84,6 +86,20 @@
       String httpsNoAuth = "https://" + getServerHost() + ":" + port + "/";
       doHttps(httpsNoAuth);
    }
+   
+   /**
+    * Test masking of Keystore password via encryption
+    * @throws Exception
+    */
+   public void testEncryptPassword() throws Exception
+   {
+      log.info("+++ testHttps");
+      int port = Integer.getInteger("secureweb.port", 8443).intValue();
+      port += 1500;
+      String httpsNoAuth = "https://" + getServerHost() + ":" + port + "/";
+      doHttps(httpsNoAuth);
+   }
+   
 
    private void doHttpRedirect(String httpNoAuth) throws Exception
    {
@@ -118,8 +134,8 @@
       String status = get.getStatusText();
       log.debug(status);
       assertTrue("Get OK("+responseCode+")", responseCode == HttpURLConnection.HTTP_OK);
-   }
-
+   } 
+   
    /** One time setup for all SingleSignOnUnitTestCase unit tests
     */
    public static Test suite() throws Exception




More information about the jboss-cvs-commits mailing list