Method from org.apache.tomcat.util.net.puretls.PureTLSSocketFactory Detail: |
public Socket acceptSocket(ServerSocket socket) throws IOException {
try {
Socket sock=socket.accept();
return sock;
} catch (SSLException e){
logger.debug("SSL handshake error",e);
throw new SocketException("SSL handshake error" + e.toString());
}
}
|
public ServerSocket createSocket(int port) throws IOException {
init();
return new SSLServerSocket(context,port);
}
|
public ServerSocket createSocket(int port,
int backlog) throws IOException {
init();
ServerSocket tmp;
try {
tmp=new SSLServerSocket(context,port,backlog);
}
catch (IOException e){
throw e;
}
return tmp;
}
|
public ServerSocket createSocket(int port,
int backlog,
InetAddress ifAddress) throws IOException {
init();
return new SSLServerSocket(context,port,backlog,ifAddress);
}
|
public void handshake(Socket sock) throws IOException {
((SSLSocket)sock).handshake();
}
|