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

1 2 3 4

  /libcore/luni/src/test/java/libcore/javax/net/ssl/
SSLContextTest.java 24 import javax.net.ssl.SSLContext;
35 SSLContext sslContext = SSLContext.getDefault();
36 assertNotNull(sslContext);
38 sslContext.init(null, null, null);
45 SSLContext.setDefault(null);
49 SSLContext defaultContext = SSLContext.getDefault();
51 SSLContext oldContext = SSLContext.getDefault()
    [all...]
  /libcore/luni/src/test/java/tests/api/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");
SSLServerSocketTest.java 33 import javax.net.ssl.SSLContext;
409 SSLContext context = SSLContext.getInstance("TLS");
419 SSLContext sslContext = SSLContext.getInstance("TLS");
420 sslContext.init(keyManagers, null, null);
422 sslContext.getServerSocketFactory().createServerSocket().close();
426 sslContext.init(keyManagers, null, new SecureRandom());
428 sslContext.getServerSocketFactory().createServerSocket().close()
    [all...]
SSLSocketTest.java 32 import javax.net.ssl.SSLContext;
210 SSLContext sslContext = SSLContext.getInstance("TLS");
211 sslContext.init(null, null, null);
213 sslContext.getSocketFactory().createSocket().close();
217 sslContext.init(null, null, new SecureRandom());
219 sslContext.getSocketFactory().createSocket().close();
539 SSLContext sslContext = SSLContext.getInstance("TLS")
    [all...]
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
SSLContext1Test.java 32 import javax.net.ssl.SSLContext;
50 * Tests for <code>SSLContext</code> class constructors and methods.
56 private static String srvSSLContext = "SSLContext";
70 private static final String NotSupportedMsg = "There is no suitable provider for SSLContext";
95 protected SSLContext[] createSSLCon() {
100 SSLContext[] sslC = new SSLContext[3];
102 sslC[0] = SSLContext.getInstance(defaultProtocol);
103 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider);
104 sslC[2] = SSLContext.getInstance(defaultProtocol
    [all...]
SSLContext2Test.java 27 import javax.net.ssl.SSLContext;
37 * Tests for SSLContext class constructors and methods
43 private static String srvSSLContext = "SSLContext";
80 private void checkSSLContext(SSLContext sslC)
153 * returns SSLContext object
158 SSLContext.getInstance(null);
165 SSLContext.getInstance(invalidValues[i]);
171 SSLContext sslC;
173 sslC = SSLContext.getInstance(validValues[i]);
174 assertTrue("Not instanceof SSLContext object"
    [all...]
  /libcore/luni/src/main/java/javax/net/ssl/
SSLContext.java 33 public class SSLContext {
35 private static final String SERVICE = "SSLContext";
41 * Default SSLContext that can be replaced with SSLContext.setDefault()
43 private static SSLContext DEFAULT;
46 * Returns the default SSLContext.
50 * SSLContext.getInstance("Default")}, which will already be
57 public static SSLContext getDefault() throws NoSuchAlgorithmException {
60 DEFAULT = SSLContext.getInstance("Default");
67 * Sets the default SSLContext instance as returned by {@lin
    [all...]
SSLServerSocketFactory.java 61 SSLContext context;
63 context = SSLContext.getDefault();
  /libcore/benchmarks/src/benchmarks/regression/
SSLSocketBenchmark.java 28 import javax.net.ssl.SSLContext;
79 SSLContext sslContext;
82 sslContext = SSLContext.getInstance("SSL", "AndroidOpenSSL");
85 sslContext = SSLContext.getInstance("SSL", "HarmonyJSSE");
90 sslContext.init(null, null, null);
91 this.sf = sslContext.getSocketFactory();
  /frameworks/base/docs/html/sdk/api_diff/9/changes/
javax.net.ssl.SSLContext.html 10 javax.net.ssl.SSLContext
74 Class javax.net.ssl.<A HREF="../../../../reference/javax/net/ssl/SSLContext.html" target="_top"><font size="+2"><code>SSLContext</code></font></A>
86 <A NAME="javax.net.ssl.SSLContext.getDefault_added()"></A>
87 <nobr><code>SSLContext</code>&nbsp;<A HREF="../../../../reference/javax/net/ssl/SSLContext.html#getDefault()" target="_top"><code>getDefault</code></A>()</nobr>
93 <A NAME="javax.net.ssl.SSLContext.getDefaultSSLParameters_added()"></A>
94 <nobr><code>SSLParameters</code>&nbsp;<A HREF="../../../../reference/javax/net/ssl/SSLContext.html#getDefaultSSLParameters()" target="_top"><code>getDefaultSSLParameters</code></A>()</nobr>
100 <A NAME="javax.net.ssl.SSLContext.getSupportedSSLParameters_added()"></A>
101 <nobr><code>SSLParameters</code>&nbsp;<A HREF="../../../../reference/javax/net/ssl/SSLContext.html#getSupportedSSLParameters()" target="_top"><code>getSupportedSSLParameters</code></A>()</nobr
    [all...]
  /libcore/support/src/test/java/libcore/javax/net/ssl/
TestSSLContext.java 31 import javax.net.ssl.SSLContext;
44 * want a canned SSLContext and related state for testing so they
88 public final SSLContext clientContext;
89 public final SSLContext serverContext;
102 SSLContext clientContext,
103 SSLContext serverContext,
132 * SSLContext with certificate and key as well as SSLServerSocket
150 SSLContext clientContext = createSSLContext(protocol, clientProvider,
152 SSLContext serverContext = createSSLContext(protocol, serverProvider,
173 SSLContext clientContext
    [all...]
  /external/okhttp/src/test/java/com/squareup/okhttp/internal/
SslContextBuilder.java 32 import javax.net.ssl.SSLContext;
63 public SSLContext build() throws GeneralSecurityException {
83 SSLContext sslContext = SSLContext.getInstance("TLS");
84 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(),
86 return sslContext;
  /libcore/crypto/src/main/java/org/conscrypt/
SSLContextImpl.java 32 * Implementation of SSLContext service provider interface.
37 * The default SSLContextImpl for use with SSLContext.getInstance("Default").
80 * Initializes this {@code SSLContext} instance. All of the arguments are
99 throw new IllegalStateException("SSLContext is not initialized.");
107 throw new IllegalStateException("SSLContext is not initialized.");
115 throw new IllegalStateException("SSLContext is not initialized.");
125 throw new IllegalStateException("SSLContext is not initialized.");
OpenSSLContextImpl.java 40 throw new IllegalStateException("SSLContext is not initialized.");
48 throw new IllegalStateException("SSLContext is not initialized.");
JSSEProvider.java 110 put("SSLContext.SSL", SSLContextImpl.class.getName());
111 put("SSLContext.SSLv3", SSLContextImpl.class.getName());
112 put("SSLContext.TLS", SSLContextImpl.class.getName());
113 put("SSLContext.TLSv1", SSLContextImpl.class.getName());
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/serialization/
HandshakeCompletedEventTest.java 23 import javax.net.ssl.SSLContext;
39 SSLContext cont = SSLContext.getInstance("TLS");
SSLSessionBindingEventTest.java 22 import javax.net.ssl.SSLContext;
39 SSLContext cont = SSLContext.getInstance("TLS");
  /external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/provider/jsse/
JSSETestData.java 25 import javax.net.ssl.SSLContext;
40 private static SSLContext context;
63 context = SSLContext.getInstance("TLSv1");
72 public static SSLContext getContext() throws Exception {
  /external/nist-sip/java/gov/nist/core/net/
SslNetworkLayer.java 42 import javax.net.ssl.SSLContext;
70 SSLContext sslContext;
71 sslContext = SSLContext.getInstance("TLS");
83 sslContext.init(kmFactory.getKeyManagers(), tmFactory.getTrustManagers(), secureRandom);
84 sslServerSocketFactory = sslContext.getServerSocketFactory();
85 sslSocketFactory = sslContext.getSocketFactory();
  /development/samples/KeyChainDemo/src/com/example/android/keychain/
SecureWebServer.java 29 import javax.net.ssl.SSLContext;
60 SSLContext sslContext = SSLContext.getInstance("TLS");
75 sslContext.init(kmf.getKeyManagers(), null, null);
78 sssf = sslContext.getServerSocketFactory();
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.ecf.ssl_1.0.0.v20100529-0735.jar 
  /external/smack/src/com/kenai/jbosh/
BOSHClientConfig.java 20 import javax.net.ssl.SSLContext;
70 private final SSLContext sslContext;
99 private SSLContext bSSLContext;
257 public Builder setSSLContext(final SSLContext ctx) {
347 final SSLContext cSSLContext,
356 sslContext = cSSLContext;
431 public SSLContext getSSLContext() {
432 return sslContext;
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
SSLSocketFunctionalTest.java 26 import javax.net.ssl.SSLContext;
67 public void doTestInteraction(SSLContext context, SSLContext ctx_other)
69 SSLContext ctx1, ctx2;
96 public void _doTestInteraction(SSLContext context, SSLContext ctx_other)
103 SSLContext ctx1, ctx2;
139 public void doTestSelfInteraction(SSLContext context)

Completed in 317 milliseconds

1 2 3 4