org.jboss.messaging.core.remoting.impl.ssl
Class SSLSupport

java.lang.Object
  extended by org.jboss.messaging.core.remoting.impl.ssl.SSLSupport

public class SSLSupport
extends java.lang.Object

Version:
$Revision$
Author:
Jeff Mesnil

Constructor Summary
SSLSupport()
           
 
Method Summary
static javax.net.ssl.SSLContext createClientContext(java.lang.String keystorePath, java.lang.String keystorePassword)
           
static javax.net.ssl.SSLContext createServerContext(java.lang.String keystorePath, java.lang.String keystorePassword, java.lang.String trustStorePath, java.lang.String trustStorePassword)
           
static javax.net.ssl.SSLContext getInstance(boolean client, java.lang.String keystorePath, java.lang.String keystorePassword, java.lang.String trustStorePath, java.lang.String trustStorePassword)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLSupport

public SSLSupport()
Method Detail

createServerContext

public static javax.net.ssl.SSLContext createServerContext(java.lang.String keystorePath,
                                                           java.lang.String keystorePassword,
                                                           java.lang.String trustStorePath,
                                                           java.lang.String trustStorePassword)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

createClientContext

public static javax.net.ssl.SSLContext createClientContext(java.lang.String keystorePath,
                                                           java.lang.String keystorePassword)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static javax.net.ssl.SSLContext getInstance(boolean client,
                                                   java.lang.String keystorePath,
                                                   java.lang.String keystorePassword,
                                                   java.lang.String trustStorePath,
                                                   java.lang.String trustStorePassword)
                                            throws java.security.GeneralSecurityException,
                                                   java.lang.Exception
Throws:
java.security.GeneralSecurityException
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.