Code examples for SSLSocket

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
114:	socket.connect(new InetSocketAddress(address, port), timeout); 
-
116:	socket.setEnabledProtocols(this.jsseSecurityDomain.getProtocols()); 
-
118:	socket.setEnabledCipherSuites(this.jsseSecurityDomain.getCipherSuites()); 
119:	socket.setNeedClientAuth(this.jsseSecurityDomain.isClientAuth()); 
Full Snippet Info
8
CodeRank
554:	sslSocket.setUseClientMode(isClientMode); 
555:	sslSocket.setEnableSessionCreation(isCreation); 
-
559:	sslSocket.setNeedClientAuth(isNeedClientAuth); 
560:	sslSocket.setWantClientAuth(isWantClientAuth); 
-
563:	sslSocket.setEnabledCipherSuites(suites); 
-
566:	sslSocket.setEnabledProtocols(protocols); 
-
568:	sslSocket.startHandshake(); 
Full Snippet Info
6
CodeRank
247:	ssl.startHandshake(); 
-
249:	SSLSession session = ssl.getSession(); 
Full Snippet Info
6
CodeRank
96:	log.finer("default enabledCipherSuites="+Arrays.toString(resultSocket.getEnabledCipherSuites())); 
-
98:	resultSocket.setEnabledCipherSuites(enabledCipherSuites); 
-
102:	return new TLSNetSocket(new Socket2NetSocket(resultSocket), resultSocket.getSession(), ""+lowerLayerNetSocket); 
Full Snippet Info
6
CodeRank
133:	socket.getSession().getPeerCertificates()[0]. 
-
158:	ObjectOutputStream out = new ObjectOutputStream(sock.getOutputStream()); 
-
162:	ObjectInputStream in = new ObjectInputStream(sock.getInputStream()); 
-
164:	sock.close(); 
-
169:	sock.close(); 
Full Snippet Info
6
CodeRank
78:	client.setEnabledCipherSuites(socket.getEnabledCipherSuites()); 
79:	client.setEnabledProtocols(socket.getEnabledProtocols()); 
80:	client.setNeedClientAuth(socket.getNeedClientAuth()); 
81:	client.setWantClientAuth(socket.getWantClientAuth()); 
82:	client.setEnabledSessionCreation(socket.getEnableSessionCreation()); 
Full Snippet Info
6
CodeRank
92:	socket.setSoTimeout(timeout); 
-
101:	socket.setEnabledProtocols(new String[]{ 
-
106:	socket.setUseClientMode(true); 
107:	sockHolder.setSocket(socket); 
Full Snippet Info
6
CodeRank
74:	System.out.printf("Client connected from %s.\n", sock.getInetAddress()); 
75:	out = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream())); 
76:	in = new BufferedReader(new InputStreamReader(sock.getInputStream())); 
Full Snippet Info
6
CodeRank
175:	sslSocket.bind(localaddr); 
176:	sslSocket.connect(remoteaddr, timeout); 
Full Snippet Info
6
CodeRank
222:	socket.setEnabledProtocols(supportedProtocols); 
-
225:	socket.setEnabledCipherSuites(supportedCipherSuites); 
-
280:	sslsock.startHandshake(); 
-
291:	this.hostnameVerifier.verify(hostname, sslsock); 
-
295:	try { sslsock.close(); } catch (final Exception x) { /*ignore*/ } 
Full Snippet Info
5
CodeRank
167:	sslSocket.setUseClientMode(true); 
168:	sslSocket.startHandshake(); 
169:	if (!hostnameVerifier.verify(hostName, sslSocket.getSession())) { 
Full Snippet Info
5
CodeRank
115:	String alias = chooseServerAlias(keyType,issuers,sslSocket.getSSLParameters().getSNIMatchers(),sslSocket.getHandshakeSession()); 
Full Snippet Info
5
CodeRank
38:	socket.setUseClientMode(true); 
39:	socket.startHandshake(); 
Full Snippet Info
5
CodeRank
32:	socket.setEnabledCipherSuites(_factory.getDefaultCipherSuites()); 
33:	socket.setEnabledProtocols(socket.getSupportedProtocols()); 
Full Snippet Info
5
CodeRank
71:	if (aSock.isClosed()) 
-
76:	OutputStream aOS = aSock.getOutputStream(); 
-
82:	InputStream aIS = aSock.getInputStream(); 
Full Snippet Info
5
CodeRank
47:	oldTimeout = sock.getSoTimeout(); 
48:	sock.setSoTimeout( 10 ); 
-
55:	sock.setSoTimeout(oldTimeout); 
-
60:	sock.setSoTimeout(oldTimeout); 
Full Snippet Info
5
CodeRank
96:	paramSSLSocket.setUseClientMode(true); 
-
98:	paramSSLSocket.setEnabledCipherSuites(arrayOfString); 
99:	paramSSLSocket.startHandshake(); 
Full Snippet Info
5
CodeRank
94:	c.startHandshake(); 
-
98:	FileSender.SendFile(c, fs); 
99:	c.close(); 
Full Snippet Info
5
CodeRank
424:	if (!msf.isServerTrusted(host, (SSLSocket)socket)) { 
-
467:	sslsocket.setEnabledProtocols(stringArray(protocols)); 
-
475:	sslsocket.setEnabledProtocols(new String[] {"TLSv1"}); 
-
479:	sslsocket.setEnabledCipherSuites(stringArray(ciphers)); 
-
482:	Arrays.asList(sslsocket.getEnabledProtocols())); 
-
484:	Arrays.asList(sslsocket.getEnabledCipherSuites())); 
Full Snippet Info
5
CodeRank
209:	socket.setSoTimeout(timeout); 
210:	return new TSocket(socket); 
Full Snippet Info
5
CodeRank