| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hsqldb.HsqlSocketFactory
org.hsqldb.HsqlSocketFactorySecure
The default secure socket factory implementation.
| Field Summary | |
| protected  Object | server_socket_factory_mutexMonitor object to guard against concurrent modification of the underlying server socket factory implementation member. | 
| protected  Object | serverSocketFactoryThe underlying server socket factory implementation. | 
| protected  Object | socket_factory_mutexMonitor object to guard against conncurrent modification of the underlying socket factory implementation member. | 
| protected  Object | socketFactoryThe underlying socket factory implementation. | 
| Constructor Summary | |
| protected  | HsqlSocketFactorySecure()External construction disabled. | 
| Method Summary | |
|  void | configureSocket(Socket socket) | 
|  ServerSocket | createServerSocket(int port)Creates a secure server socket bound to the specified port. | 
|  ServerSocket | createServerSocket(int port,
                   String address)Creates a secure server socket bound to the specified port. | 
|  Socket | createSocket(String host,
             int port)Creates a secure Socket and connects it to the specified remote host at the specified remote port. | 
| protected  SSLServerSocketFactory | getServerSocketFactoryImpl()Retrieves the underlying javax.net.ssl.SSLServerSocketFactory. | 
| protected  SSLSocketFactory | getSocketFactoryImpl()Retrieves the underlying javax.net.ssl.SSLSocketFactory. | 
|  void | handshakeCompleted(HandshakeCompletedEvent evt) | 
|  boolean | isSecure()Retrieves whether this factory produces secure sockets. | 
| protected  void | verify(String host,
       SSLSession session)Verifyies the certificate chain presented by the server to which a secure Socket has just connected. | 
| Methods inherited from class org.hsqldb.HsqlSocketFactory | 
| getInstance | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected Object socketFactory
protected Object serverSocketFactory
protected final Object socket_factory_mutex
protected final Object server_socket_factory_mutex
| Constructor Detail | 
protected HsqlSocketFactorySecure()
                           throws Exception
| Method Detail | 
public void configureSocket(Socket socket)
configureSocket in class HsqlSocketFactory
public ServerSocket createServerSocket(int port)
                                throws Exception
createServerSocket in class HsqlSocketFactoryport - the port to which to bind the secure ServerSocket
Exception - if a network or security provider error occurs
public ServerSocket createServerSocket(int port,
                                       String address)
                                throws Exception
createServerSocket in class HsqlSocketFactoryport - the port to which to bind the secure ServerSocket
Exception - if a network or security provider error occurs
public Socket createSocket(String host,
                           int port)
                    throws Exception
createSocket in class HsqlSocketFactoryhost - the server hostport - the server port
Exception - if a network or security provider error occurspublic boolean isSecure()
isSecure in class HsqlSocketFactory
protected SSLServerSocketFactory getServerSocketFactoryImpl()
                                                     throws Exception
Exception - if there is a problem retrieving the
      underlying factory
protected SSLSocketFactory getSocketFactoryImpl()
                                         throws Exception
Exception - if there is a problem retrieving the
      underlying factory
protected void verify(String host,
                      SSLSession session)
               throws Exception
host - the requested host namesession - SSLSession used on the connection to host
Exception - if the certificate chain cannot be verifiedpublic void handshakeCompleted(HandshakeCompletedEvent evt)
handshakeCompleted in interface HandshakeCompletedListener| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||