/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 | 35 import javax.net.ssl.SSLContext; 460 SSLContext context = SSLContext.getInstance("TLS"); 470 SSLContext sslContext = SSLContext.getInstance("TLS"); 471 sslContext.init(keyManagers, null, null); 473 sslContext.getServerSocketFactory().createServerSocket().close(); 477 sslContext.init(keyManagers, null, new SecureRandom()); 479 sslContext.getServerSocketFactory().createServerSocket().close() [all...] |
SSLSocketTest.java | 32 import javax.net.ssl.SSLContext; 217 SSLContext sslContext = SSLContext.getInstance("TLS"); 218 sslContext.init(null, null, null); 220 sslContext.getSocketFactory().createSocket().close(); 224 sslContext.init(null, null, new SecureRandom()); 226 sslContext.getSocketFactory().createSocket().close(); 548 SSLContext sslContext = SSLContext.getInstance("TLS") [all...] |
HandshakeCompletedEventTest.java | 33 import javax.net.ssl.SSLContext; 414 SSLContext sslContext = SSLContext.getInstance("TLS"); 415 sslContext.init(keyManagers, trustManagers, null); 418 sslContext.getServerSocketFactory().createServerSocket(); 495 SSLContext sslContext = SSLContext.getInstance("TLS"); 496 sslContext.init(keyManagers, trustManagers, null) [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();
|
/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> <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> <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> <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...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
OpenSSLProvider.java | 26 put("SSLContext.SSL", OpenSSLContextImpl.class.getName()); 27 put("SSLContext.SSLv3", OpenSSLContextImpl.class.getName()); 28 put("SSLContext.TLS", OpenSSLContextImpl.class.getName()); 29 put("SSLContext.TLSv1", OpenSSLContextImpl.class.getName()); 30 put("SSLContext.Default", DefaultSSLContextImpl.class.getName());
|
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();
|
/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)
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 40 import javax.net.ssl.SSLContext; 195 SSLContext serverContext = SSLContext.getInstance("SSL"); 208 SSLContext clientContext = SSLContext.getInstance("SSL");
|
/external/apache-http/src/org/apache/http/conn/ssl/ |
SSLSocketFactory.java | 42 import javax.net.ssl.SSLContext; 166 private final SSLContext sslcontext; field in class:SSLSocketFactory 192 this.sslcontext = SSLContext.getInstance(algorithm); 193 this.sslcontext.init(keymanagers, trustmanagers, random); 194 this.socketfactory = this.sslcontext.getSocketFactory(); 227 this.sslcontext = null; 239 this.sslcontext = null;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLSocketFactory.java | 48 import javax.net.ssl.SSLContext; 172 private final SSLContext sslcontext; field in class:SSLSocketFactory 198 sslcontext = SSLContext.getInstance(algorithm); 199 sslcontext.init(keymanagers, trustmanagers, random); 200 socketfactory = sslcontext.getSocketFactory(); 231 sslcontext = null; 243 sslcontext = null;
|