Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory Class Reference

List of all members.

Public Member Functions

 AuthenticatedSocketFactory (SSLSocketFactory factory)
Socket createSocket (String host, int port) throws IOException, UnknownHostException
Socket createSocket (InetAddress host, int port) throws IOException
Socket createSocket (String host, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
Socket createSocket (InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
Socket createSocket (Socket s, String host, int port, boolean autoClose) throws IOException
String[] getDefaultCipherSuites ()
String[] getSupportedCipherSuites ()

Detailed Description

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

Author:
Marc Wick
Version:
1.0

Definition at line 46 of file AuthenticatedSocketFactory.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.AuthenticatedSocketFactory SSLSocketFactory  factory  ) 
 

Creates a new AuthenticatedSSLSocketFactory.java object

Parameters:
factory - the factory

Definition at line 58 of file AuthenticatedSocketFactory.java.

00059   {
00060     this.factory = factory;
00061   }


Member Function Documentation

Socket org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.createSocket Socket  s,
String  host,
int  port,
boolean  autoClose
throws IOException
 

See also:
javax.net.ssl.SSLSocketFactory#createSocket(java.net.Socket, java.lang.String, int, boolean)

Definition at line 114 of file AuthenticatedSocketFactory.java.

00116   {
00117     SSLSocket socket = (SSLSocket) factory.createSocket(s, host, port,
00118         autoClose);
00119     socket.setNeedClientAuth(true);
00120     return socket;
00121   }

Socket org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.createSocket InetAddress  address,
int  port,
InetAddress  localAddress,
int  localPort
throws IOException
 

See also:
javax.net.SocketFactory#createSocket(java.net.InetAddress, int, java.net.InetAddress, int)

Definition at line 101 of file AuthenticatedSocketFactory.java.

00103   {
00104     SSLSocket socket = (SSLSocket) factory.createSocket(address, port,
00105         localAddress, localPort);
00106     socket.setNeedClientAuth(true);
00107     return socket;
00108   }

Socket org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.createSocket String  host,
int  port,
InetAddress  localAddress,
int  localPort
throws IOException, UnknownHostException
 

See also:
javax.net.SocketFactory#createSocket(java.lang.String, int, java.net.InetAddress, int)

Definition at line 88 of file AuthenticatedSocketFactory.java.

00090   {
00091     SSLSocket socket = (SSLSocket) factory.createSocket(host, port,
00092         localAddress, localPort);
00093     socket.setNeedClientAuth(true);
00094     return socket;
00095   }

Socket org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.createSocket InetAddress  host,
int  port
throws IOException
 

See also:
javax.net.SocketFactory#createSocket(java.net.InetAddress, int)

Definition at line 77 of file AuthenticatedSocketFactory.java.

00078   {
00079     SSLSocket socket = (SSLSocket) factory.createSocket(host, port);
00080     socket.setNeedClientAuth(true);
00081     return socket;
00082   }

Socket org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.createSocket String  host,
int  port
throws IOException, UnknownHostException
 

See also:
javax.net.SocketFactory#createSocket(java.lang.String, int)

Definition at line 66 of file AuthenticatedSocketFactory.java.

00068   {
00069     SSLSocket socket = (SSLSocket) factory.createSocket(host, port);
00070     socket.setNeedClientAuth(true);
00071     return socket;
00072   }

String [] org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.getDefaultCipherSuites  ) 
 

See also:
javax.net.ssl.SSLSocketFactory#getDefaultCipherSuites()

Definition at line 126 of file AuthenticatedSocketFactory.java.

00127   {
00128     return factory.getDefaultCipherSuites();
00129   }

String [] org.objectweb.cjdbc.common.net.AuthenticatedSocketFactory.getSupportedCipherSuites  ) 
 

See also:
javax.net.ssl.SSLSocketFactory#getSupportedCipherSuites()

Definition at line 134 of file AuthenticatedSocketFactory.java.

00135   {
00136     return factory.getDefaultCipherSuites();
00137   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:02 2005 for C-JDBC by  doxygen 1.3.9.1