Lines Matching refs:socket

68         SSLSocket socket = null;
72 socket = new SSLSocketImpl(JSSETestData.getSSLParameters());
73 socket.connect(
75 ((SSLSocketImpl) socket).init();
76 socket.setUseClientMode(true);
79 final SSLSocket s = socket;
106 socket.close();
119 if (socket != null) {
121 socket.close();
134 SSLSocket socket = null;
138 socket = new SSLSocketImpl("localhost",
140 socket.setUseClientMode(true);
143 final SSLSocket s = socket;
170 socket.close();
183 if (socket != null) {
185 socket.close();
198 SSLSocket socket = null;
202 socket = new SSLSocketImpl(
207 socket.setUseClientMode(true);
210 final SSLSocket s = socket;
237 socket.close();
250 if (socket != null) {
252 socket.close();
265 SSLSocket socket = null;
269 socket = new SSLSocketImpl(
273 socket.setUseClientMode(true);
276 final SSLSocket s = socket;
303 socket.close();
316 if (socket != null) {
318 socket.close();
331 SSLSocket socket = null;
335 socket = new SSLSocketImpl(
340 socket.setUseClientMode(true);
343 final SSLSocket s = socket;
370 socket.close();
383 if (socket != null) {
385 socket.close();
396 SSLSocket socket = createSSLSocket();
397 String[] supported = socket.getSupportedCipherSuites();
400 supported = socket.getEnabledCipherSuites();
413 SSLSocket socket = createSSLSocket();
414 String[] enabled = socket.getEnabledCipherSuites();
416 String[] supported = socket.getSupportedCipherSuites();
429 socket.setEnabledCipherSuites(supported);
434 socket.setEnabledCipherSuites(enabled);
435 String[] result = socket.getEnabledCipherSuites();
460 SSLSocket socket = createSSLSocket();
461 String[] enabled = socket.getEnabledCipherSuites();
463 String[] supported = socket.getSupportedCipherSuites();
476 socket.setEnabledCipherSuites(supported);
477 socket.setEnabledCipherSuites(enabled);
478 socket.setEnabledCipherSuites(supported);
488 socket.setEnabledCipherSuites(more_than_supported);
493 enabled = socket.getEnabledCipherSuites();
495 enabled = socket.getEnabledCipherSuites();
508 SSLSocket socket = createSSLSocket();
509 String[] supported = socket.getSupportedProtocols();
513 supported = socket.getSupportedProtocols();
526 SSLSocket socket = createSSLSocket();
527 String[] enabled = socket.getEnabledProtocols();
529 String[] supported = socket.getSupportedProtocols();
542 socket.setEnabledProtocols(supported);
547 socket.setEnabledProtocols(enabled);
548 String[] result = socket.getEnabledProtocols();
573 SSLSocket socket = createSSLSocket();
574 String[] enabled = socket.getEnabledProtocols();
576 String[] supported = socket.getSupportedProtocols();
590 socket.setEnabledProtocols(supported);
591 socket.setEnabledProtocols(enabled);
592 socket.setEnabledProtocols(supported);
602 socket.setEnabledProtocols(more_than_supported);
607 enabled = socket.getEnabledProtocols();
609 enabled = socket.getEnabledProtocols();
679 SSLSocket socket = null;
683 socket = createSSLSocket(server.getPort());
685 socket.setUseClientMode(false);
687 socket.getUseClientMode());
688 socket.setUseClientMode(true);
690 socket.getUseClientMode());
693 final SSLSocket s = socket;
714 socket.setUseClientMode(false);
716 socket.close();
727 if (socket != null) {
729 socket.close();
741 SSLSocket socket = createSSLSocket();
743 socket.setWantClientAuth(true);
744 socket.setNeedClientAuth(false);
746 socket.getNeedClientAuth());
748 socket.getWantClientAuth());
749 socket.setWantClientAuth(true);
750 socket.setNeedClientAuth(true);
752 socket.getNeedClientAuth());
754 socket.getWantClientAuth());
762 SSLSocket socket = createSSLSocket();
764 socket.setNeedClientAuth(true);
765 socket.setWantClientAuth(false);
767 socket.getWantClientAuth());
769 socket.getNeedClientAuth());
770 socket.setNeedClientAuth(true);
771 socket.setWantClientAuth(true);
773 socket.getWantClientAuth());
775 socket.getNeedClientAuth());
783 SSLSocket socket = createSSLSocket();
785 socket.setEnableSessionCreation(false);
787 socket.getEnableSessionCreation());
788 socket.setEnableSessionCreation(true);
790 socket.getEnableSessionCreation());
798 SSLSocket socket = null;
802 socket = createSSLSocket(server.getPort());
803 socket.setUseClientMode(true);
806 final SSLSocket s = socket;
835 socket.close();
857 if (socket != null) {
859 socket.close();
879 SSLSocket socket = createSSLSocket();
880 socket.addHandshakeCompletedListener(listener);
882 socket.addHandshakeCompletedListener(null);
887 socket.removeHandshakeCompletedListener(null);
892 socket.removeHandshakeCompletedListener(
902 socket.removeHandshakeCompletedListener(listener);
913 SSLSocket socket = null;
917 socket = createSSLSocket(server.getPort());
918 socket.setUseClientMode(true);
921 final SSLSocket s = socket;
961 if (socket != null) {
963 socket.close();
975 SSLSocket socket = null;
979 socket = createSSLSocket(server.getPort());
980 socket.setUseClientMode(true);
983 final SSLSocket s = socket;
1010 socket.close();
1023 if (socket != null) {
1025 socket.close();
1037 SSLSocket socket = null;
1041 socket = createSSLSocket(server.getPort());
1042 socket.setUseClientMode(true);
1045 final SSLSocket s = socket;
1072 socket.close();
1085 if (socket != null) {
1087 socket.close();
1099 SSLSocket socket = null;
1102 socket = createSSLSocket(server.getPort());
1104 socket.sendUrgentData(0);
1117 if (socket != null) {
1119 socket.close();
1131 SSLSocket socket = null;
1134 socket = createSSLSocket(server.getPort());
1136 socket.setOOBInline(true);
1149 if (socket != null) {
1151 socket.close();
1163 SSLSocket socket = null;
1166 socket = createSSLSocket(server.getPort());
1168 socket.shutdownOutput();
1181 if (socket != null) {
1183 socket.close();
1195 SSLSocket socket = null;
1198 socket = createSSLSocket(server.getPort());
1200 socket.shutdownInput();
1213 if (socket != null) {
1215 socket.close();
1226 SSLSocket socket = createSSLSocket();
1227 assertNotNull("String representation is null", socket.toString());