throw( new TRTrackerServerException( "port of 0 not currently supported for SSL"));
}
try {
SSLServerSocketFactory factory = SESecurityManager.getSSLServerSocketFactory();
if ( factory == null ){
throw( new TRTrackerServerException( "TRTrackerServer: failed to get SSL factory" ));
}else{
SSLServerSocket ssl_server_socket;
if ( _bind_ip != null ){
current_bind_ip = _bind_ip;
ssl_server_socket = (SSLServerSocket)factory.createServerSocket( getPort(), 128, _bind_ip );
}else if ( bind_ip == null ){
ssl_server_socket = (SSLServerSocket)factory.createServerSocket( getPort(), 128 );
}else{
current_bind_ip = bind_ip;
ssl_server_socket = (SSLServerSocket)factory.createServerSocket( getPort(), 128, bind_ip );
}
String cipherSuites[] = ssl_server_socket.getSupportedCipherSuites();
ssl_server_socket.setEnabledCipherSuites(cipherSuites);