directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r417132 - /directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/ssl/BogusSSLContextFactory.java
Date Mon, 26 Jun 2006 06:49:45 GMT
Author: trustin
Date: Sun Jun 25 23:49:45 2006
New Revision: 417132

URL: http://svn.apache.org/viewvc?rev=417132&view=rev
Log:
Fixed issue: DIRMINA-219 (Example test cases fail on IBM JVM due to lacking SSL algorithms)
* Changed BogusSSLContextFactory to accept other key manager factory algorithms than SunX509

Modified:
    directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/ssl/BogusSSLContextFactory.java

Modified: directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/ssl/BogusSSLContextFactory.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/ssl/BogusSSLContextFactory.java?rev=417132&r1=417131&r2=417132&view=diff
==============================================================================
--- directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/ssl/BogusSSLContextFactory.java
(original)
+++ directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/ssl/BogusSSLContextFactory.java
Sun Jun 25 23:49:45 2006
@@ -39,6 +39,9 @@
      * Protocol to use.
      */
     private static final String PROTOCOL = "TLS";
+    
+    private static final String KEY_MANAGER_FACTORY_ALGORITHM =
+        System.getProperty( "ssl.KeyManagerFactory.algorithm", "SunX509" );
 
     /**
      * Bougus Server certificate keystore file name.
@@ -138,7 +141,8 @@
         }
 
         // Set up key manager factory to use our key store
-        KeyManagerFactory kmf = KeyManagerFactory.getInstance( "SunX509" );
+        KeyManagerFactory kmf = KeyManagerFactory.getInstance(
+                KEY_MANAGER_FACTORY_ALGORITHM );
         kmf.init( ks, BOGUS_PW );
 
         // Initialize the SSLContext to work with our key managers.



Mime
View raw message