Home
last modified time | relevance | path

Searched refs:SSLSocket (Results 1 – 25 of 62) sorted by relevance

123

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DDelegatingSSLSocketFactory.java23 import javax.net.ssl.SSLSocket;
38 @Override public SSLSocket createSocket() throws IOException { in createSocket()
39 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(); in createSocket()
43 @Override public SSLSocket createSocket(String host, int port) throws IOException { in createSocket()
44 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); in createSocket()
48 @Override public SSLSocket createSocket( in createSocket()
50 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); in createSocket()
54 @Override public SSLSocket createSocket(InetAddress host, int port) throws IOException { in createSocket()
55 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); in createSocket()
59 @Override public SSLSocket createSocket( in createSocket()
[all …]
DConnectionSpecTest.java22 import javax.net.ssl.SSLSocket;
87 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_noFallbackIndicator()
115 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_withFallbackIndicator()
147 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_explicitCiphers()
185 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingRequiredCipher()
209 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledCipherSuites()
228 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledTlsVersions()
246 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingTlsVersion()
DFallbackTestClientSocketFactory.java23 import javax.net.ssl.SSLSocket;
43 @Override protected SSLSocket configureSocket(SSLSocket sslSocket) throws IOException { in configureSocket()
49 public TlsFallbackScsvDisabledSSLSocket(SSLSocket socket) { in TlsFallbackScsvDisabledSSLSocket()
DDelegatingSSLSocket.java28 import javax.net.ssl.SSLSocket;
33 public abstract class DelegatingSSLSocket extends SSLSocket {
34 protected final SSLSocket delegate;
36 public DelegatingSSLSocket(SSLSocket delegate) { in DelegatingSSLSocket()
/external/conscrypt/testing/src/main/java/tests/net/
DDelegatingSSLSocketFactory.java21 import javax.net.ssl.SSLSocket;
37 protected SSLSocket configureSocket(SSLSocket socket) throws IOException { in configureSocket()
50 SSLSocket socket = (SSLSocket) mDelegate.createSocket(); in createSocket()
56 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); in createSocket()
61 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket()
67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); in createSocket()
72 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket()
78SSLSocket socket = (SSLSocket) mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java105 import javax.net.ssl.SSLSocket;
153 (SSLSocket) SSLSocketFactory.getDefault().createSocket()); in test_SSLSocket_defaultConfiguration()
159 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies()
239 SSLSocket server = socketPair.server; in test_SSLSocket_getSupportedCipherSuites_connect()
240 SSLSocket client = socketPair.client; in test_SSLSocket_getSupportedCipherSuites_connect()
285 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies()
292 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_storesCopy()
303 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites()
334 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedProtocols_returnsCopies()
341 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledProtocols_returnsCopies()
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/
DChannelType.java31 import javax.net.ssl.SSLSocket;
41 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket()
52 SSLSocket accept(ServerSocket socket, SSLSocketFactory unused) throws IOException { in accept()
58 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket()
73 SSLSocket accept(ServerSocket serverSocket, SSLSocketFactory factory) throws IOException { in accept()
84 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket()
98 SSLSocket accept(ServerSocket serverSocket, SSLSocketFactory factory) throws IOException { in accept()
114 abstract SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket()
117 abstract SSLSocket accept(ServerSocket socket, SSLSocketFactory factory) throws IOException; in accept()
119 private static SSLSocket clientMode(Socket socket) { in clientMode()
[all …]
/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java24 import javax.net.ssl.SSLSocket;
33 public final SSLSocket server;
34 public final SSLSocket client;
35 private TestSSLSocketPair(TestSSLContext c, SSLSocket server, SSLSocket client) { in TestSSLSocketPair()
50 public SSLSocket[] sockets() { in sockets()
51 return new SSLSocket[] {server, client}; in sockets()
131 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in create()
133 SSLSocket server = (SSLSocket) context.serverSocket.accept(); in create()
DTestSSLSessions.java18 import javax.net.ssl.SSLSocket;
64 SSLSocket ssl = (SSLSocket) sf.createSocket(); in create()
DSSLConfigurationAsserts.java32 import javax.net.ssl.SSLSocket;
91 try (SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket()) { in assertSSLSocketFactoryConfigSameAsSSLContext()
100 public static void assertSSLSocketDefaultConfiguration(SSLSocket sslSocket) throws Exception { in assertSSLSocketDefaultConfiguration()
109 SSLSocket sslSocket, SSLContext sslContext) { in assertSSLSocketConfigSameAsSSLContext()
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscrypt.java30 import javax.net.ssl.SSLSocket;
234 public static boolean isConscrypt(SSLSocket socket) { in isConscrypt()
238 private static AbstractConscryptSocket toConscrypt(SSLSocket socket) { in toConscrypt()
253 public static void setHostname(SSLSocket socket, String hostname) { in setHostname()
262 public static String getHostname(SSLSocket socket) { in getHostname()
270 public static String getHostnameOrIP(SSLSocket socket) { in getHostnameOrIP()
280 public static void setUseSessionTickets(SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets()
294 public static void setChannelIdEnabled(SSLSocket socket, boolean enabled) { in setChannelIdEnabled()
308 public static byte[] getChannelId(SSLSocket socket) throws SSLException { in getChannelId()
326 public static void setChannelIdPrivateKey(SSLSocket socket, PrivateKey privateKey) { in setChannelIdPrivateKey()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DConnectionSpecSelectorTest.java27 import javax.net.ssl.SSLSocket;
48 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in nonRetryableIOException()
61 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in nonRetryableSSLHandshakeException()
76 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in retryableSSLHandshakeException()
95 SSLSocket socket = createSocketWithEnabledProtocols(enabledSocketTlsVersions); in someFallbacksSupported()
122 private SSLSocket createSocketWithEnabledProtocols(TlsVersion... tlsVersions) throws IOException { in createSocketWithEnabledProtocols()
123 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in createSocketWithEnabledProtocols()
128 private static void assertEnabledProtocols(SSLSocket socket, TlsVersion... required) { in assertEnabledProtocols()
/external/nist-sip/java/gov/nist/core/net/
DDefaultNetworkLayer.java38 import javax.net.ssl.SSLSocket;
105 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket()
107 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket()
111 public SSLSocket createSSLSocket(InetAddress address, int port, in createSSLSocket()
113 return (SSLSocket) sslSocketFactory.createSocket(address, port, in createSSLSocket()
DSslNetworkLayer.java45 import javax.net.ssl.SSLSocket;
115 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket()
117 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket()
121 public SSLSocket createSSLSocket(InetAddress address, int port, in createSSLSocket()
123 return (SSLSocket) sslSocketFactory.createSocket(address, port, in createSSLSocket()
DNetworkLayer.java37 import javax.net.ssl.SSLSocket;
121 public SSLSocket createSSLSocket(InetAddress address, int port) throws IOException; in createSSLSocket()
132 …public SSLSocket createSSLSocket(InetAddress address, int port, InetAddress localAddress) throws I… in createSSLSocket()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DPlatform.java36 import javax.net.ssl.SSLSocket;
102 public void configureTlsExtensions(SSLSocket sslSocket, String hostname, in configureTlsExtensions()
110 public void afterHandshake(SSLSocket sslSocket) { in afterHandshake()
114 public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol()
183 Method putMethod = negoClass.getMethod("put", SSLSocket.class, providerClass); in findPlatform()
184 Method getMethod = negoClass.getMethod("get", SSLSocket.class); in findPlatform()
185 Method removeMethod = negoClass.getMethod("remove", SSLSocket.class); in findPlatform()
272 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions()
286 @Override public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol()
368 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions()
[all …]
DConnectionSpecSelector.java30 import javax.net.ssl.SSLSocket;
55 public ConnectionSpec configureSecureSocket(SSLSocket sslSocket) throws IOException { in configureSecureSocket()
135 private boolean isFallbackPossible(SSLSocket socket) { in isFallbackPossible()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DRecordedRequest.java28 import javax.net.ssl.SSLSocket;
58 if (socket instanceof SSLSocket) { in RecordedRequest()
59 SSLSocket sslSocket = (SSLSocket) socket; in RecordedRequest()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DRecordedRequest.java23 import javax.net.ssl.SSLSocket;
46 this.tlsVersion = socket instanceof SSLSocket in RecordedRequest()
47 ? TlsVersion.forJavaName(((SSLSocket) socket).getSession().getProtocol()) in RecordedRequest()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/framed/
DFramedServer.java32 import javax.net.ssl.SSLSocket;
62 SSLSocket sslSocket = doSsl(socket); in run()
84 private SSLSocket doSsl(Socket socket) throws IOException { in doSsl()
85 SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket( in doSsl()
/external/okhttp/android/main/java/com/squareup/okhttp/internal/
DPlatform.java30 import javax.net.ssl.SSLSocket;
103 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions()
126 public void afterHandshake(SSLSocket sslSocket) { in afterHandshake()
129 public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLServerSocketImplTest.java33 import javax.net.ssl.SSLSocket;
98 SSLSocket socket = (SSLSocket) socketFactory.createSocket(LOCALHOST, server.port()); in setup()
/external/apache-http/android/src/android/net/http/
DCertificateChainValidator.java41 import javax.net.ssl.SSLSocket;
110 HttpsConnection connection, SSLSocket sslSocket, String domain) in doHandshakeAndValidateServerCertificates()
265 SSLSocket socket, String errorMessage, String defaultErrorMessage) in closeSocketThrowException()
271 private void closeSocketThrowException(SSLSocket socket, in closeSocketThrowException()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionSpec.java21 import javax.net.ssl.SSLSocket;
128 void apply(SSLSocket sslSocket, boolean isFallback) { in apply()
143 private ConnectionSpec supportedSpec(SSLSocket sslSocket, boolean isFallback) { in supportedSpec()
174 public boolean isCompatible(SSLSocket socket) { in isCompatible()
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DClientEndpoint.java23 import javax.net.ssl.SSLSocket;
31 private final SSLSocket socket;

123