org.objectweb.cjdbc.common.net
Class AuthenticatedServerSocketFactory

java.lang.Object
  extended byjavax.net.ServerSocketFactory
      extended byjavax.net.ssl.SSLServerSocketFactory
          extended byorg.objectweb.cjdbc.common.net.AuthenticatedServerSocketFactory

public class AuthenticatedServerSocketFactory
extends javax.net.ssl.SSLServerSocketFactory

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

Field Summary
private  javax.net.ssl.SSLServerSocketFactory factory
           
 
Fields inherited from class javax.net.ssl.SSLServerSocketFactory
 
Constructor Summary
AuthenticatedServerSocketFactory(javax.net.ssl.SSLServerSocketFactory factory)
          Creates a new AuthenticatedSSLSocketFactory.java object
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
           
 java.net.ServerSocket createServerSocket(int port, int backlog)
           
 java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress ifAddress)
           
 java.lang.String[] getDefaultCipherSuites()
           
 java.lang.String[] getSupportedCipherSuites()
           
 
Methods inherited from class javax.net.ssl.SSLServerSocketFactory
getDefault
 
Methods inherited from class javax.net.ServerSocketFactory
createServerSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private javax.net.ssl.SSLServerSocketFactory factory
Constructor Detail

AuthenticatedServerSocketFactory

public AuthenticatedServerSocketFactory(javax.net.ssl.SSLServerSocketFactory factory)
Creates a new AuthenticatedSSLSocketFactory.java object

Parameters:
factory - - the factory
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException,
                                                java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
ServerSocketFactory.createServerSocket(int)

createServerSocket

public java.net.ServerSocket createServerSocket(int port,
                                                int backlog)
                                         throws java.io.IOException,
                                                java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
ServerSocketFactory.createServerSocket(int,int)

createServerSocket

public java.net.ServerSocket createServerSocket(int port,
                                                int backlog,
                                                java.net.InetAddress ifAddress)
                                         throws java.io.IOException,
                                                java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException
See Also:
ServerSocketFactory.createServerSocket(int, int, java.net.InetAddress)

getDefaultCipherSuites

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

getSupportedCipherSuites

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


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