org.apache.servicemix.mail.security
Class CustomSSLSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by javax.net.ssl.SSLSocketFactory
          extended by org.apache.servicemix.mail.security.CustomSSLSocketFactory

public class CustomSSLSocketFactory
extends javax.net.ssl.SSLSocketFactory

CustomSSLSocketFactory providing no security at all


Field Summary
static java.lang.String PROPERTY_SEPARATOR
          this is the separator char for concatenating several managers
static java.lang.String PROPERTY_TRUSTMANAGERS
          the content of this property will be used to initialize the list of trust managers for this SSL Socket Factory
 
Constructor Summary
CustomSSLSocketFactory()
          default constructor
 
Method Summary
 java.net.Socket createSocket()
           
 java.net.Socket createSocket(java.net.InetAddress inaddr, int i)
           
 java.net.Socket createSocket(java.net.InetAddress inaddr, int i, java.net.InetAddress inaddr1, int j)
           
 java.net.Socket createSocket(java.net.Socket socket, java.lang.String s, int i, boolean flag)
           
 java.net.Socket createSocket(java.lang.String s, int i)
           
 java.net.Socket createSocket(java.lang.String s, int i, java.net.InetAddress inaddr, int j)
           
static javax.net.SocketFactory getDefault()
          returns a new instance of this factory
 java.lang.String[] getDefaultCipherSuites()
           
 java.lang.String[] getSupportedCipherSuites()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_TRUSTMANAGERS

public static final java.lang.String PROPERTY_TRUSTMANAGERS
the content of this property will be used to initialize the list of trust managers for this SSL Socket Factory

See Also:
Constant Field Values

PROPERTY_SEPARATOR

public static final java.lang.String PROPERTY_SEPARATOR
this is the separator char for concatenating several managers

See Also:
Constant Field Values
Constructor Detail

CustomSSLSocketFactory

public CustomSSLSocketFactory()
default constructor

Method Detail

getDefault

public static javax.net.SocketFactory getDefault()
returns a new instance of this factory

Returns:
a new factory instance

createSocket

public java.net.Socket createSocket(java.net.Socket socket,
                                    java.lang.String s,
                                    int i,
                                    boolean flag)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.ssl.SSLSocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket()
                             throws java.io.IOException
Overrides:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress inaddr,
                                    int i,
                                    java.net.InetAddress inaddr1,
                                    int j)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress inaddr,
                                    int i)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String s,
                                    int i,
                                    java.net.InetAddress inaddr,
                                    int j)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String s,
                                    int i)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class javax.net.ssl.SSLSocketFactory

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class javax.net.ssl.SSLSocketFactory


Copyright © 2005-2012 FuseSource. All Rights Reserved.