|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.HsqlSocketFactory org.hsqldb.HsqlSocketFactorySecure
The default secure socket factory implementation.
Field Summary | |
protected Object |
server_socket_factory_mutex
Monitor object to guard against concurrent modification of the underlying server socket factory implementation member. |
protected Object |
serverSocketFactory
The underlying server socket factory implementation. |
protected Object |
socket_factory_mutex
Monitor object to guard against conncurrent modification of the underlying socket factory implementation member. |
protected Object |
socketFactory
The 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 HsqlSocketFactory
port
- the port to which to bind the secure ServerSocket
Exception
- if a network or security provider error occurspublic ServerSocket createServerSocket(int port, String address) throws Exception
createServerSocket
in class HsqlSocketFactory
port
- the port to which to bind the secure ServerSocket
Exception
- if a network or security provider error occurspublic Socket createSocket(String host, int port) throws Exception
createSocket
in class HsqlSocketFactory
host
- 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 factoryprotected SSLSocketFactory getSocketFactoryImpl() throws Exception
Exception
- if there is a problem retrieving the
underlying factoryprotected 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 |