HomeSort by relevance Sort by last modified time
    Searched refs:SSLContext (Results 1 - 25 of 134) sorted by null

1 2 3 4 5 6

  /external/conscrypt/benchmark-android/src/main/java/org/conscrypt/
AndroidEngineFactory.java 19 import javax.net.ssl.SSLContext;
28 private final SSLContext clientContext = newConscryptClientContext();
29 private final SSLContext serverContext = newConscryptServerContext();
49 private SSLContext newContext() {
51 return SSLContext.getInstance(TestUtils.getProtocols()[0], new OpenSSLProvider());
66 private static SSLContext newConscryptClientContext() {
70 private static SSLContext newConscryptServerContext() {
AndroidEndpointFactory.java 5 import javax.net.ssl.SSLContext;
53 SSLContext clientContext = TestUtils.newClientSslContext(provider);
54 SSLContext serverContext = TestUtils.newServerSslContext(provider);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
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");
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...]
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...]
  /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/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
SSLContextTest.java 49 import javax.net.ssl.SSLContext;
72 SSLContext sslContext = SSLContext.getDefault();
73 assertNotNull(sslContext);
75 sslContext.init(null, null, null);
85 SSLContext.setDefault(null);
91 SSLContext defaultContext = SSLContext.getDefault();
93 SSLContext oldContext = SSLContext.getDefault()
    [all...]
  /frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
TestUtils.java 24 import javax.net.ssl.SSLContext;
36 public static void assertConnectionFails(SSLContext context, String host, int port)
46 public static void assertConnectionSucceeds(SSLContext context, String host, int port)
52 public static void assertUrlConnectionFails(SSLContext context, String host, int port)
65 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port)
73 public static SSLContext getSSLContext(ConfigSource source) throws Exception {
78 SSLContext context = SSLContext.getInstance("TLS");
  /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;
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
SystemFacade.java 29 import javax.net.ssl.SSLContext;
72 * Return a {@link SSLContext} configured using the specified package's configuration.
74 public SSLContext getSSLContextForPackage(Context context, String pckg)
RealSystemFacade.java 38 import javax.net.ssl.SSLContext;
93 public SSLContext getSSLContextForPackage(Context context, String packageName)
99 // Unknown package -- fallback to the default SSLContext
100 return SSLContext.getDefault();
102 SSLContext ctx = SSLContext.getInstance("TLS");
  /prebuilts/jdk/jdk8/darwin-x86/sample/nio/server/
AcceptHandler.java 57 private SSLContext sslContext;
60 SSLContext sslContext) {
63 this.sslContext = sslContext;
76 ChannelIO cio = (sslContext != null ?
78 sc, false /* non-blocking */, sslContext) :
Acceptor.java 57 private SSLContext sslContext;
59 Acceptor(ServerSocketChannel ssc, Dispatcher d, SSLContext sslContext) {
62 this.sslContext = sslContext;
70 ChannelIO cio = (sslContext != null ?
72 sc, false /* non-blocking */, sslContext) :
  /prebuilts/jdk/jdk8/linux-x86/sample/nio/server/
AcceptHandler.java 57 private SSLContext sslContext;
60 SSLContext sslContext) {
63 this.sslContext = sslContext;
76 ChannelIO cio = (sslContext != null ?
78 sc, false /* non-blocking */, sslContext) :
Acceptor.java 57 private SSLContext sslContext;
59 Acceptor(ServerSocketChannel ssc, Dispatcher d, SSLContext sslContext) {
62 this.sslContext = sslContext;
70 ChannelIO cio = (sslContext != null ?
72 sc, false /* non-blocking */, sslContext) :
  /frameworks/base/core/tests/coretests/src/android/net/
SSLSessionCacheTest.java 30 import javax.net.ssl.SSLContext;
41 final SSLContext ctx = SSLContext.getDefault();
63 static final class FakeSSLContext extends SSLContext {
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
PasspointObjectFactory.java 31 import javax.net.ssl.SSLContext;
146 * Create an instance of {@link SSLContext}.
149 * @return SSLContext an instance, corresponding to the TLS version
151 public SSLContext getSSLContext(String tlsVersion) {
152 SSLContext tlsContext = null;
154 tlsContext = SSLContext.getInstance(tlsVersion);
  /external/conscrypt/testing/src/main/java/org/conscrypt/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...]
  /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();
  /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-jmh/src/jmh/java/org/conscrypt/
OpenJdkEngineFactory.java 29 import io.netty.handler.ssl.SslContext;
35 import javax.net.ssl.SSLContext;
55 private final SSLContext clientContext = initClientSslContext(newContext());
56 private final SSLContext serverContext = initServerSslContext(newContext());
74 private SSLContext newContext() {
76 return SSLContext.getInstance(OpenJdkEngineFactoryConfig.PROTOCOL);
83 private final SSLContext clientContext = newConscryptClientContext();
84 private final SSLContext serverContext = newConscryptServerContext();
104 private SSLContext newContext() {
106 return SSLContext.getInstance
    [all...]
OpenJdkEndpointFactory.java 5 import javax.net.ssl.SSLContext;
55 SSLContext clientContext = TestUtils.newClientSslContext(provider);
56 SSLContext serverContext = TestUtils.newServerSslContext(provider);
65 SSLContext clientContext = TestUtils.newClientSslContext(provider);
66 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...]
  /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...]
  /external/conscrypt/testing/src/main/java/org/conscrypt/
TestUtils.java 40 import javax.net.ssl.SSLContext;
85 return p.get("SSLContext." + protocol) != null;
261 SSLContext clientContext = initClientSslContext(newContext(provider));
266 SSLContext serverContext = initServerSslContext(newContext(provider));
270 static SSLContext newContext(Provider provider) {
272 return SSLContext.getInstance("TLS", provider);
279 SSLContext jdkContext =
281 SSLContext conscryptContext = TestUtils.initSslContext(
291 private static List<String> supportedCiphers(SSLContext ctx) {
338 static SSLContext newClientSslContext(Provider provider)
    [all...]

Completed in 529 milliseconds

1 2 3 4 5 6