HomeSort by relevance Sort by last modified time
    Searched full:sslcontext (Results 1 - 25 of 174) sorted by null

1 2 3 4 5 6 7

  /libcore/luni/src/test/java/libcore/javax/net/ssl/
SSLContextTest.java 39 import javax.net.ssl.SSLContext;
56 SSLContext sslContext = SSLContext.getDefault();
57 assertNotNull(sslContext);
59 sslContext.init(null, null, null);
67 SSLContext.setDefault(null);
72 SSLContext defaultContext = SSLContext.getDefault();
74 SSLContext oldContext = SSLContext.getDefault()
    [all...]
  /external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
SSLContextTest.java 47 import javax.net.ssl.SSLContext;
70 SSLContext sslContext = SSLContext.getDefault();
71 assertNotNull(sslContext);
73 sslContext.init(null, null, null);
83 SSLContext.setDefault(null);
89 SSLContext defaultContext = SSLContext.getDefault();
91 SSLContext oldContext = SSLContext.getDefault()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
SSLContext1Test.java 32 import javax.net.ssl.SSLContext;
47 * Tests for <code>SSLContext</code> class constructors and methods.
52 private static String srvSSLContext = "SSLContext";
74 protected SSLContext[] createSSLCon() {
79 SSLContext[] sslC = new SSLContext[3];
81 sslC[0] = SSLContext.getInstance(defaultProtocol);
82 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider);
83 sslC[2] = SSLContext.getInstance(defaultProtocol,
93 * Test for <code>SSLContext</code> constructor Assertion: return
    [all...]
SSLContext2Test.java 27 import javax.net.ssl.SSLContext;
35 * Tests for SSLContext class constructors and methods
40 private static String srvSSLContext = "SSLContext";
75 private void checkSSLContext(SSLContext sslC)
148 * returns SSLContext object
153 SSLContext.getInstance(null);
161 SSLContext.getInstance(invalidValues[i]);
167 SSLContext sslC;
169 sslC = SSLContext.getInstance(validValues[i]);
170 assertTrue("Not instanceof SSLContext object", sslC instanceof SSLContext)
    [all...]
SSLSessionContextTest.java 5 import javax.net.ssl.SSLContext;
23 SSLContext context = SSLContext.getInstance("TLS");
47 SSLContext context = SSLContext.getInstance("TLS");
70 SSLContext context = SSLContext.getInstance("TLS");
88 SSLContext context = SSLContext.getInstance("TLS");
  /external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
SSLConfigurationAsserts.java 27 import javax.net.ssl.SSLContext;
43 * Asserts that the provided {@link SSLContext} has the expected default configuration, and that
48 public static void assertSSLContextDefaultConfiguration(SSLContext sslContext)
50 SSLParameters defaultParameters = sslContext.getDefaultSSLParameters();
52 sslContext.getProtocol(), defaultParameters.getProtocols());
56 SSLParameters supportedParameters = sslContext.getSupportedSSLParameters();
65 assertSSLSocketFactoryConfigSameAsSSLContext(sslContext.getSocketFactory(), sslContext);
67 sslContext.getServerSocketFactory(), sslContext)
    [all...]
  /libcore/support/src/test/java/libcore/javax/net/ssl/
SSLConfigurationAsserts.java 26 import javax.net.ssl.SSLContext;
43 * Asserts that the provided {@link SSLContext} has the expected default configuration, and that
48 public static void assertSSLContextDefaultConfiguration(SSLContext sslContext)
50 SSLParameters defaultParameters = sslContext.getDefaultSSLParameters();
51 StandardNames.assertSSLContextEnabledProtocols(sslContext.getProtocol(),
57 SSLParameters supportedParameters = sslContext.getSupportedSSLParameters();
68 assertSSLSocketFactoryConfigSameAsSSLContext(sslContext.getSocketFactory(), sslContext);
69 assertSSLServerSocketFactoryConfigSameAsSSLContext(sslContext.getServerSocketFactory()
    [all...]
  /external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
EngineType.java 24 import io.netty.handler.ssl.SslContext;
30 import javax.net.ssl.SSLContext;
41 private final SSLContext clientContext = initClientSslContext(newContext());
42 private final SSLContext serverContext = initServerSslContext(newContext());
54 private SSLContext newContext() {
56 return SSLContext.getInstance(PROTOCOL_TLS_V1_2);
63 private final SSLContext clientContext = initClientSslContext(newContext());
64 private final SSLContext serverContext = initServerSslContext(newContext());
76 private SSLContext newContext() {
78 return SSLContext.getInstance(PROTOCOL_TLS_V1_2, new OpenSSLProvider())
    [all...]
SocketType.java 5 import javax.net.ssl.SSLContext;
51 SSLContext clientContext = TestUtils.newClientSslContext(provider);
52 SSLContext serverContext = TestUtils.newServerSslContext(provider);
61 SSLContext clientContext = TestUtils.newClientSslContext(provider);
62 SSLContext serverContext = TestUtils.newServerSslContext(provider);
  /external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/
SampleServer.java 17 import javax.net.ssl.SSLContext;
23 private final SSLContext sslContext;
27 public SampleServer(SSLContext sslContext, String root, int port) {
28 this.sslContext = sslContext;
35 server.useHttps(sslContext.getSocketFactory(), false);
114 SSLContext sslContext = sslContext(keystoreFile, password)
    [all...]
  /external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/
SSLServerSocketFactoryWrapper.java 26 import javax.net.ssl.SSLContext;
45 SSLContext sslcontext = SSLContext.getInstance("TLS"); local
46 sslcontext.init(keyManagers, trustManagers, null);
47 mFactory = sslcontext.getServerSocketFactory();
SSLSocketFactoryWrapper.java 27 import javax.net.ssl.SSLContext;
57 SSLContext sslcontext = SSLContext.getInstance("TLS"); local
58 sslcontext.init(keyManagers, trustManagers, null);
59 mFactory = sslcontext.getSocketFactory();
  /frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
TestUtils.java 22 import javax.net.ssl.SSLContext;
34 public static void assertConnectionFails(SSLContext context, String host, int port)
44 public static void assertConnectionSucceeds(SSLContext context, String host, int port)
50 public static void assertUrlConnectionFails(SSLContext context, String host, int port)
63 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port)
71 public static SSLContext getSSLContext(ConfigSource source) throws Exception {
76 SSLContext context = SSLContext.getInstance("TLS");
  /libcore/ojluni/src/main/java/javax/net/ssl/
SSLContext.java 40 * <p> Android provides the following <code>SSLContext</code> protocols:
81 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#SSLContext">
82 * SSLContext section</a> of the
87 public class SSLContext {
95 * Creates an SSLContext object.
101 protected SSLContext(SSLContextSpi contextSpi, Provider provider,
108 private static SSLContext defaultContext;
114 * SSLContext.setDefault()} method, it is returned. Otherwise, the first
116 * <code>SSLContext.getInstance("Default")</code>.
124 * {@link SSLContext#getInstance SSLContext.getInstance()} call fail
    [all...]
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/
SslContextBuilder.java 31 import javax.net.ssl.SSLContext;
42 private static SSLContext localhost; // Lazily initialized.
45 public static synchronized SSLContext localhost() {
90 public SSLContext build() throws GeneralSecurityException {
114 SSLContext sslContext = SSLContext.getInstance("TLS");
115 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(),
117 return sslContext;
  /libcore/tools/docs/crypto/src/java/libcore/java/security/
ListProviders.java 31 import javax.net.ssl.SSLContext;
134 SSLContext defaultContext = SSLContext.getDefault();
137 SSLContext pskContext = SSLContext.getInstance("TLS");
142 for (SSLContext sslContext : new SSLContext[] {defaultContext, pskContext}) {
143 SSLEngine engine = sslContext.createSSLEngine();
145 print(sslContext.getProvider(), "SSLEngine.Supported", suite)
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
SSLSocketBenchmark.java 28 import javax.net.ssl.SSLContext;
76 SSLContext sslContext = SSLContext.getInstance("SSL");
77 sslContext.init(null, null, null);
78 this.sf = sslContext.getSocketFactory();
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLContextImpl.java 31 * OpenSSL-backed SSLContext service provider interface.
41 * SSLContext.getInstance("Default"). Protected by the
57 /** Allows outside callers to get the preferred SSLContext. */
89 * Initializes this {@code SSLContext} instance. All of the arguments are
108 throw new IllegalStateException("SSLContext is not initialized.");
116 throw new IllegalStateException("SSLContext is not initialized.");
124 throw new IllegalStateException("SSLContext is not initialized.");
134 throw new IllegalStateException("SSLContext is not initialized.");
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
FakeSystemFacade.java 25 import javax.net.ssl.SSLContext;
37 private SSLContext mSSLContext = null;
49 mSSLContext = SSLContext.getDefault();
130 public SSLContext getSSLContextForPackage(Context context, String pckg) {
134 public void setSSLContext(SSLContext context) {
  /external/okhttp/android/test/java/com/squareup/okhttp/internal/
PlatformTest.java 33 import javax.net.ssl.SSLContext;
88 SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
89 sslContext.init(null, new TrustManager[] { TRUST_NO_ONE_TRUST_MANAGER }, new SecureRandom());
90 SSLSocketFactory socketFactory = sslContext.getSocketFactory();
102 SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
103 sslContext.init(null, new TrustManager[] { TRUST_NO_ONE_TRUST_MANAGER }, new SecureRandom())
    [all...]
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
RealSystemFacade.java 35 import javax.net.ssl.SSLContext;
112 public SSLContext getSSLContextForPackage(Context context, String packageName)
118 // Unknown package -- fallback to the default SSLContext
119 return SSLContext.getDefault();
121 SSLContext ctx = SSLContext.getInstance("TLS");
SystemFacade.java 27 import javax.net.ssl.SSLContext;
70 * Return a {@link SSLContext} configured using the specified package's configuration.
72 public SSLContext getSSLContextForPackage(Context context, String pckg)
  /external/conscrypt/testing/src/main/java/org/conscrypt/
TestUtils.java 32 import javax.net.ssl.SSLContext;
53 public static final String PROVIDER_PROPERTY = "SSLContext.TLSv1.2";
168 SSLContext clientContext = initClientSslContext(newContext(provider));
173 SSLContext serverContext = initServerSslContext(newContext(provider));
177 private static SSLContext newContext(Provider provider) {
179 return SSLContext.getInstance("TLS", provider);
226 static SSLContext newClientSslContext(Provider provider) {
227 SSLContext context = newContext(provider);
231 static SSLContext newServerSslContext(Provider provider) {
232 SSLContext context = newContext(provider)
    [all...]
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
ApacheHttpClient.java 24 import javax.net.ssl.SSLContext;
45 SSLContext sslContext = SslContextBuilder.localhost();
47 new Scheme("https", 443, new SSLSocketFactory(sslContext)));
OkHttp.java 26 import javax.net.ssl.SSLContext;
41 SSLContext sslContext = SslContextBuilder.localhost();
42 SSLSocketFactory socketFactory = sslContext.getSocketFactory();

Completed in 782 milliseconds

1 2 3 4 5 6 7