/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLSocketPair.java | 25 import javax.net.ssl.SSLSocket; 34 public final SSLSocket server; 35 public final SSLSocket client; 38 SSLSocket server, 39 SSLSocket client) { 60 SSLSocket[] sockets = connect(c, null, null); 71 public static SSLSocket[] connect (final TestSSLContext context, 75 final SSLSocket client = (SSLSocket) 77 final SSLSocket server = (SSLSocket) context.serverSocket.accept() [all...] |
TestSSLSessions.java | 20 import javax.net.ssl.SSLSocket; 68 SSLSocket ssl = (SSLSocket) sf.createSocket();
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLSessionBindingListenerTest.java | 25 import javax.net.ssl.SSLSocket; 63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() 77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault()
|
HandshakeCompletedEventTest.java | 37 import javax.net.ssl.SSLSocket; 72 * javax.net.ssl.HandshakeCompletedEvent#HandshakeCompletedEvent(SSLSocket sock, SSLSession s) 76 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 91 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 102 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); 113 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket() [all...] |
SSLSocketTest.java | 34 import javax.net.ssl.SSLSocket; 52 * javax.net.ssl.SSLSocket#SSLSocket() 55 SSLSocket ssl = getSSLSocket(); 61 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 67 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 88 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 95 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/serialization/ |
HandshakeCompletedEventTest.java | 24 import javax.net.ssl.SSLSocket; 41 SSLSocket soc = (SSLSocket )cont.getSocketFactory().createSocket();
|
SSLSessionBindingEventTest.java | 24 import javax.net.ssl.SSLSocket; 41 SSLSocket soc = (SSLSocket )cont.getSocketFactory().createSocket();
|
/libcore/luni/src/main/java/javax/net/ssl/ |
HandshakeCompletedEvent.java | 42 public HandshakeCompletedEvent(SSLSocket sock, SSLSession s) { 130 public SSLSocket getSocket() { 131 return (SSLSocket) this.source;
|
SSLSocket.java | 29 public abstract class SSLSocket extends Socket { 36 protected SSLSocket() { 54 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { 71 protected SSLSocket(InetAddress address, int port) throws IOException { 94 protected SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) 116 protected SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) 292 * Returns a new SSLParameters based on this SSLSocket's current 308 * argument. Specifically, sets the SSLSocket's enabled cipher 312 * on the SSLSocket, otherwise both are set to false.
|
SSLContextSpi.java | 116 * based an SSLSocket created from this instances SocketFactory. 129 * based an SSLSocket created from this instances SocketFactory. 139 SSLSocket s = (SSLSocket) engineGetSocketFactory().createSocket();
|
/external/apache-http/src/org/apache/http/conn/ssl/ |
X509HostnameVerifier.java | 37 import javax.net.ssl.SSLSocket; 64 void verify(String host, SSLSocket ssl) throws IOException;
|
SSLSocketFactory.java | 43 import javax.net.ssl.SSLSocket; 272 return (SSLSocket) this.socketfactory.createSocket(); 293 SSLSocket sslsock = (SSLSocket) 354 if (!(sock instanceof SSLSocket)) { 375 SSLSocket sslSocket = (SSLSocket) this.socketfactory.createSocket( 381 hostnameVerifier.verify(host, sslSocket); 383 return sslSocket; [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketTest.java | 44 import javax.net.ssl.SSLSocket; 56 SSLSocket ssl = (SSLSocket) sf.createSocket(); 156 SSLSocket[] pair = TestSSLSocketPair.connect(c, 160 SSLSocket server = pair[0]; 161 SSLSocket client = pair[1]; 190 SSLSocket ssl = (SSLSocket) sf.createSocket(); 198 SSLSocket ssl = (SSLSocket) sf.createSocket() [all...] |
SSLSocketFactoryTest.java | 27 import javax.net.ssl.SSLSocket; 75 assertTrue(SSLSocket.class.isAssignableFrom(ssl.getClass()));
|
/external/nist-sip/java/gov/nist/core/net/ |
NetworkLayer.java | 37 import javax.net.ssl.SSLSocket; 121 public SSLSocket createSSLSocket(InetAddress address, int port) throws IOException; 132 public SSLSocket createSSLSocket(InetAddress address, int port, InetAddress localAddress) throws IOException;
|
DefaultNetworkLayer.java | 38 import javax.net.ssl.SSLSocket; 105 public SSLSocket createSSLSocket(InetAddress address, int port) 107 return (SSLSocket) sslSocketFactory.createSocket(address, port); 111 public SSLSocket createSSLSocket(InetAddress address, int port, 113 return (SSLSocket) sslSocketFactory.createSocket(address, port,
|
SslNetworkLayer.java | 45 import javax.net.ssl.SSLSocket;
115 public SSLSocket createSSLSocket(InetAddress address, int port)
117 return (SSLSocket) sslSocketFactory.createSocket(address, port);
121 public SSLSocket createSSLSocket(InetAddress address, int port,
123 return (SSLSocket) sslSocketFactory.createSocket(address, port,
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
SSLSocketTest.java | 27 import javax.net.ssl.SSLSocket; 34 * Tests for <code>SSLSocket</code> class constructors. 40 * Class under test for void SSLSocket() 43 SSLSocket soc = new MySSLSocket(); 51 * Class under test for void SSLSocket(String, int) 55 SSLSocket soc = new MySSLSocket("localhost", ss.getLocalPort()); 61 * Class under test for void SSLSocket(InetAddress, int) 65 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss 72 * Class under test for void SSLSocket(String, int, InetAddress, int) 78 SSLSocket soc = new MySSLSocket("localhost", ss1.getLocalPort() [all...] |
HandshakeCompletedEventTest.java | 27 import javax.net.ssl.SSLSocket; 41 SSLSocket soc; 62 soc = (SSLSocket) sf.createSocket("localhost", port);
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
SSLSocketImplTest.java | 28 import javax.net.ssl.SSLSocket; 54 private SSLSocket createSSLSocket() throws Exception { 58 private SSLSocket createSSLSocket(int port) throws Exception { 68 SSLSocket socket = null; 79 final SSLSocket s = socket; 128 SSLSocket socket = null; 137 final SSLSocket s = socket; 186 SSLSocket socket = null; 198 final SSLSocket s = socket; 247 SSLSocket socket = null [all...] |
SSLSocketFactoriesTest.java | 29 import javax.net.ssl.SSLSocket; 128 SSLSocket csocket; 135 csocket = (SSLSocket) socketFactory.createSocket(); 145 csocket = (SSLSocket) 154 csocket = (SSLSocket) 164 csocket = (SSLSocket) socketFactory.createSocket( 173 csocket = (SSLSocket) socketFactory.createSocket( 188 csocket = (SSLSocket) socketFactory.createSocket( 287 public void doTest(SSLServerSocket ssocket, SSLSocket csocket) 296 final SSLSocket s = csocket [all...] |
SSLSocketFunctionalTest.java | 28 import javax.net.ssl.SSLSocket; 84 SSLSocket csocket = (SSLSocket) ctx2 122 SSLSocket csocket = (SSLSocket) ctx2 154 SSLSocket csocket = (SSLSocket) context 180 public void doTest(SSLServerSocket ssocket, SSLSocket csocket) 189 final SSLSocket s = csocket; 195 SSLSocket s = null [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | 46 import javax.net.ssl.SSLSocket; 146 SSLSocket peerSocket = (SSLSocket) doInteraction(connection, ss); 186 SSLSocket peerSocket = (SSLSocket) doPersistentInteraction( 273 SSLSocket peerSocket = (SSLSocket) doInteraction(connection, ss); 318 SSLSocket peerSocket = (SSLSocket) doInteraction(connection, ss); 402 SSLSocket peerSocket = (SSLSocket) doInteraction(connection, ss) [all...] |
/frameworks/base/core/java/android/net/http/ |
CertificateChainValidator.java | 38 import javax.net.ssl.SSLSocket; 75 * @param sslSocket The secure connection socket 80 HttpsConnection connection, SSLSocket sslSocket, String domain) 83 SSLSession sslSession = sslSocket.getSession(); 85 closeSocketThrowException(sslSocket, "failed to perform SSL handshake"); 90 sslSocket.getSession().getPeerCertificates(); 94 sslSocket, "failed to retrieve peer certificates"); 171 SSLSocket socket, String errorMessage, String defaultErrorMessage) 177 private void closeSocketThrowException(SSLSocket socket [all...] |
/libcore/luni/src/main/java/libcore/net/http/ |
HttpConnection.java | 35 import javax.net.ssl.SSLSocket; 57 private SSLSocket unverifiedSocket; 58 private SSLSocket sslSocket; 134 IoUtils.closeQuietly(sslSocket); 145 if (sslSocket != null) { 147 sslOutputStream = sslSocket.getOutputStream(); 157 if (sslSocket != null) { 159 sslInputStream = sslSocket.getInputStream(); 178 return sslSocket != null ? sslSocket : socket [all...] |