Code example for SSLServerSocketFactory

Methods: createServerSocket

0
	 * @return 		Socket 	= server socket 
	 * @throws IOException 	= when socket establishment fails, 
	 * 							or client is rejected 
	 */ 
	public ServerSocket createServerSocket(int port) throws IOException {
	    SSLServerSocket result = (SSLServerSocket) ssf.createServerSocket(port);
	    //Require Client Authentication 
	    result.setWantClientAuth(true);
	    result.setNeedClientAuth(true);
		return (new RMISSLServerSocketMonitor(result, this.myPubKeyHash, 
					this.allowedClientKeys, this.log));
    } 
 
	/** 
	 * Returns a hash of this object 
	 * @return int = hash of this object 
	 */ 
    public int hashCode() { 
    	return getClass().hashCode();
    } 
Contextual code suggestions in your IDE  Get Codota for Java