OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:TestSSLContext
(Results
1 - 12
of
12
) sorted by null
/libcore/luni/src/test/java/libcore/javax/net/ssl/
SSLSessionContextTest.java
32
public static final void assertSSLSessionContextSize(int expected,
TestSSLContext
c) {
52
if (server &&
TestSSLContext
.sslServerSocketSupportsSessionTickets()) {
60
TestSSLContext
c =
TestSSLContext
.create();
70
if (
TestSSLContext
.sslServerSocketSupportsSessionTickets()) {
81
TestSSLContext
c =
TestSSLContext
.create();
104
if (
TestSSLContext
.sslServerSocketSupportsSessionTickets()) {
115
TestSSLContext
c =
TestSSLContext
.create()
[
all
...]
SSLEngineTest.java
63
TestSSLContext
c =
TestSSLContext
.create();
87
TestSSLContext
c =
TestSSLContext
.create(testKeyStore, testKeyStore);
89
// Create a
TestSSLContext
where the KeyManager returns wrong (randomly generated) private
92
// first element of TestKeyStore.keyManagers while invoking
TestSSLContext
.create.
93
TestSSLContext
cWithWrongPrivateKeys;
98
cWithWrongPrivateKeys =
TestSSLContext
.create(testKeyStore, testKeyStore);
170
TestSSLContext
c =
TestSSLContext
.create()
[
all
...]
SSLSocketTest.java
131
TestSSLContext
c =
TestSSLContext
.create(testKeyStore, testKeyStore,
293
final
TestSSLContext
c =
TestSSLContext
.create();
311
TestSSLContext
.assertServerCertificateChain(c.serverTrustManager,
313
TestSSLContext
.assertCertificateInKeyStore(localCertificates[0],
326
TestSSLContext
.assertServerCertificateChain(c.clientTrustManager,
328
TestSSLContext
.assertCertificateInKeyStore(peerCertificates[0], c.serverKeyStore);
349
final
TestSSLContext
c =
TestSSLContext
.create()
[
all
...]
SSLSessionTest.java
84
if (
TestSSLContext
.sslServerSocketSupportsSessionTickets()) {
116
TestSSLContext
.assertServerCertificateChain(s.s.c.serverTrustManager,
118
TestSSLContext
.assertCertificateInKeyStore(s.server.getLocalCertificates()[0],
129
TestSSLContext
.assertCertificateInKeyStore(s.server.getLocalPrincipal(),
168
TestSSLContext
.assertServerCertificateChain(s.s.c.serverTrustManager,
170
TestSSLContext
.assertCertificateInKeyStore(s.client.getPeerCertificates()[0],
210
TestSSLContext
.assertCertificateInKeyStore(s.client.getPeerPrincipal(),
SSLContextTest.java
295
TestSSLContext
testContext =
TestSSLContext
.create();
/libcore/support/src/test/java/libcore/javax/net/ssl/
TestSSLSocketPair.java
33
public final
TestSSLContext
c;
37
private TestSSLSocketPair (
TestSSLContext
c,
59
TestSSLContext
c =
TestSSLContext
.create();
71
public static SSLSocket[] connect (final
TestSSLContext
context,
TestSSLEnginePair.java
33
public final
TestSSLContext
c;
37
private TestSSLEnginePair(
TestSSLContext
c,
46
return create(
TestSSLContext
.create(), hooks);
49
public static TestSSLEnginePair create(
TestSSLContext
c, Hooks hooks) throws IOException {
61
public static SSLEngine[] connect(final
TestSSLContext
c,
TestSSLContext.java
43
*
TestSSLContext
is a convenience class for other tests that
47
public final class
TestSSLContext
extends Assert {
94
private
TestSSLContext
(KeyStore clientKeyStore,
131
* Usual
TestSSLContext
creation method, creates underlying
135
public static
TestSSLContext
create() {
141
*
TestSSLContext
creation method that allows separate creation of server key store
143
public static
TestSSLContext
create(TestKeyStore client, TestKeyStore server) {
147
public static
TestSSLContext
create(TestKeyStore client, TestKeyStore server,
165
*
TestSSLContext
creation method that allows separate creation of client and server key store
167
public static
TestSSLContext
create(KeyStore clientKeyStore, char[] clientStorePassword
[
all
...]
/frameworks/base/core/tests/coretests/src/android/net/http/
AbstractProxyTest.java
29
import libcore.javax.net.ssl.
TestSSLContext
;
60
TestSSLContext
testSSLContext
=
TestSSLContext
.create();
62
server.useHttps(
testSSLContext
.serverContext.getSocketFactory(), false);
70
SSLSocketFactory sslSocketFactory = newSslSocketFactory(
testSSLContext
);
83
private SSLSocketFactory newSslSocketFactory(
TestSSLContext
testSSLContext
) throws Exception {
86
.newInstance(
testSSLContext
.clientContext.getSocketFactory());
149
TestSSLContext
testSSLContext = TestSSLContext.create()
[
all
...]
/libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java
74
import libcore.javax.net.ssl.
TestSSLContext
;
340
TestSSLContext
testSSLContext
=
TestSSLContext
.create();
341
server.useHttps(
testSSLContext
.serverContext.getSocketFactory(), false);
349
connection.setSSLSocketFactory(
testSSLContext
.clientContext.getSocketFactory());
361
TestSSLContext
testSSLContext
=
TestSSLContext
.create();
362
server.useHttps(
testSSLContext
.serverContext.getSocketFactory(), false)
[
all
...]
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
KeyChainTestActivity.java
46
import libcore.javax.net.ssl.
TestSSLContext
;
200
SSLSocketFactory needClientAuth =
TestSSLContext
.clientAuth(sf, false, true);
/cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyPairGeneratorTest.java
58
import libcore.javax.net.ssl.
TestSSLContext
;
490
SSLContext clientContext =
TestSSLContext
.createSSLContext("TLS", provider,
496
SSLContext serverContext =
TestSSLContext
.createSSLContext("TLS", provider,
Completed in 220 milliseconds