Code example for SSLServerSocketFactory

Methods: createServerSocket

0
		if (port <= 1024) {
			throw new IllegalArgumentException("Ports under 1024 are reserved!");
		} 
		_port = port;
		SSLServerSocketFactory sslServerSocketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
		_socket = sslServerSocketFactory.createServerSocket(port);
		 
 
		//_socket = new ServerSocket(port);//(SSLServerSocket) sslServerSocketFactory.createServerSocket(port); 
		//_socket.setEnabledCipherSuites(sslServerSocketFactory.getDefaultCipherSuites()); 
		 
		//System.err.println("SERVER"); 
		//for(String s : _socket.getEnabledCipherSuites()) 
		//	System.out.println(s); 
		 
		try { 
			_b = new CalendarBackend();	
			_e = new EventSuggester(_b);
			_m = new EmailMonitor(_b, ShiftyProperties.getValue("HOST"), ShiftyProperties.getValue("APP_EMAIL"), ShiftyProperties.getValue("EMAIL_PASSWORD"));
		} catch (ClassNotFoundException e) {
Contextual code suggestions in your IDE  Get Codota for Java