Sun Adapter for LDAP API

com.stc.connector.ldapadapter.ldap
Class LDAPSSLSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by com.stc.connector.ldapadapter.ldap.LDAPSSLSocketFactory

public class LDAPSSLSocketFactory
extends javax.net.SocketFactory

Version:
Author:

Constructor Summary
LDAPSSLSocketFactory()
           
 
Method Summary
 java.net.Socket createSocket(java.net.InetAddress host, int port)
          Create a socket.
 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress clientAddress, int clientPort)
          Create a socket.
 java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)
          Create a socket.
 java.net.Socket createSocket(java.lang.String host, int port)
          Create a socket.
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress clientHost, int clientPort)
          Create a socket.
static javax.net.SocketFactory getDefault()
          the getDefault method that returns the default socket factory implementation after initializing the SSL context with parameter values received from the eWay configuration model.
 java.lang.String[] getDefaultCipherSuites()
          Get the default cipher suites.
static javax.net.ssl.SSLSocketFactory getSocketFactory()
           
 java.lang.String[] getSupportedCipherSuites()
          Get the supported cipher suites.
 
Methods inherited from class javax.net.SocketFactory
createSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSSLSocketFactory

public LDAPSSLSocketFactory()
Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Create a socket.

Specified by:
createSocket in class javax.net.SocketFactory
Parameters:
host - The host.
port - The port.
Returns:
An instance of Socket.
Throws:
java.io.IOException - upon error.
java.net.UnknownHostException - upon error.

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress clientHost,
                                    int clientPort)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Create a socket.

Specified by:
createSocket in class javax.net.SocketFactory
Parameters:
host - The host.
port - The port.
clientHost - InetAddress of client host.
clientPort - port number of client host.
Returns:
An instance of Socket.
Throws:
java.io.IOException - upon error.
java.net.UnknownHostException - upon error.

createSocket

public java.net.Socket createSocket(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Create a socket.

Specified by:
createSocket in class javax.net.SocketFactory
Parameters:
host - The InetAddress of host.
port - The port.
Returns:
An instance of Socket.
Throws:
java.io.IOException - upon error.
java.net.UnknownHostException - upon error.

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port,
                                    java.net.InetAddress clientAddress,
                                    int clientPort)
                             throws java.io.IOException
Create a socket.

Specified by:
createSocket in class javax.net.SocketFactory
Parameters:
address - The InetAddress of host.
port - The port.
clientAddress - InetAddress of client host.
clientPort - port number of client host.
Returns:
An instance of Socket.
Throws:
java.io.IOException - upon error.

createSocket

public java.net.Socket createSocket(java.net.Socket s,
                                    java.lang.String host,
                                    int port,
                                    boolean autoClose)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Create a socket.

Parameters:
s - The current established socket connection.
host - The host.
port - The port.
autoClose - Automatically close socket connection.
Returns:
An instance of Socket.
Throws:
java.io.IOException - upon error.
java.net.UnknownHostException - upon error.

getDefault

public static javax.net.SocketFactory getDefault()
the getDefault method that returns the default socket factory implementation after initializing the SSL context with parameter values received from the eWay configuration model.

Returns:
the default socket factory implementation from Sun JSSE provider.

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()
Get the default cipher suites.

Returns:
An array of cipher suite Strings.

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()
Get the supported cipher suites.

Returns:
An array of cipher suite Strings.

getSocketFactory

public static javax.net.ssl.SSLSocketFactory getSocketFactory()
                                                       throws LDAPApplicationConnectionException
Throws:
LDAPApplicationConnectionException

Sun Adapter for LDAP API