org.objectweb.cjdbc.common.net
Class AuthenticatedSocketFactory

java.lang.Object
  extended byjavax.net.SocketFactory
      extended byjavax.net.ssl.SSLSocketFactory
          extended byorg.objectweb.cjdbc.common.net.AuthenticatedSocketFactory
All Implemented Interfaces:
java.io.Serializable

public class AuthenticatedSocketFactory
extends javax.net.ssl.SSLSocketFactory
implements java.io.Serializable

This class defines a AuthenticatedSSLSocketFactory

It is a wrapper around the socket factory in the constructor and sets the setNeedClientAuth to true to enforce client authentication with the public key

Version:
1.0
Author:
Marc Wick
See Also:
Serialized Form

Field Summary
private  javax.net.ssl.SSLSocketFactory factory
           
private static long serialVersionUID
           
 
Fields inherited from class javax.net.ssl.SSLSocketFactory
 
Constructor Summary
AuthenticatedSocketFactory(javax.net.ssl.SSLSocketFactory factory)
          Creates a new AuthenticatedSSLSocketFactory.java object
 
Method Summary
 java.net.Socket createSocket(java.net.InetAddress host, int port)
           
 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)
           
 java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)
           
 java.net.Socket createSocket(java.lang.String host, int port)
           
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort)
           
 java.lang.String[] getDefaultCipherSuites()
           
 java.lang.String[] getSupportedCipherSuites()
           
 
Methods inherited from class javax.net.ssl.SSLSocketFactory
getDefault
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

factory

private javax.net.ssl.SSLSocketFactory factory
Constructor Detail

AuthenticatedSocketFactory

public AuthenticatedSocketFactory(javax.net.ssl.SSLSocketFactory factory)
Creates a new AuthenticatedSSLSocketFactory.java object

Parameters:
factory - - the factory
Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
SocketFactory.createSocket(java.lang.String, int)

createSocket

public java.net.Socket createSocket(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException
Throws:
java.io.IOException
See Also:
SocketFactory.createSocket(java.net.InetAddress, int)

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
SocketFactory.createSocket(java.lang.String, int, java.net.InetAddress, int)

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort)
                             throws java.io.IOException
Throws:
java.io.IOException
See Also:
SocketFactory.createSocket(java.net.InetAddress, int, java.net.InetAddress, int)

createSocket

public java.net.Socket createSocket(java.net.Socket s,
                                    java.lang.String host,
                                    int port,
                                    boolean autoClose)
                             throws java.io.IOException
Throws:
java.io.IOException
See Also:
SSLSocketFactory.createSocket(java.net.Socket, java.lang.String, int, boolean)

getDefaultCipherSuites

public java.lang.String[] getDefaultCipherSuites()
See Also:
SSLSocketFactory.getDefaultCipherSuites()

getSupportedCipherSuites

public java.lang.String[] getSupportedCipherSuites()
See Also:
SSLSocketFactory.getSupportedCipherSuites()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.