OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:x509trustmanager
(Results
1 - 25
of
127
) sorted by null
1
2
3
4
5
6
/cts/tests/tests/net/src/android/net/http/cts/
X509TrustManagerExtensionsTest.java
27
import javax.net.ssl.
X509TrustManager
;
33
private static
X509TrustManager
getFirstX509TrustManager(TrustManagerFactory tmf)
36
if (trustManager instanceof
X509TrustManager
) {
37
return (
X509TrustManager
) trustManager;
40
fail("Unable to find
X509TrustManager
");
48
X509TrustManager
tm = getFirstX509TrustManager(tmf);
/frameworks/base/core/tests/coretests/src/android/net/http/
X509TrustManagerExtensionsTest.java
24
import javax.net.ssl.
X509TrustManager
;
32
private class NotATrustManagerImpl implements
X509TrustManager
{
65
if (tm instanceof
X509TrustManager
) {
66
new X509TrustManagerExtensions((
X509TrustManager
)tm);
/cts/tests/tests/security/src/android/security/cts/
ConscryptIntermediateVerificationTest.java
32
import javax.net.ssl.
X509TrustManager
;
58
private
X509TrustManager
getTrustManager() throws Exception {
67
X509TrustManager
trustManager = null;
69
if (tm instanceof
X509TrustManager
) {
70
return (
X509TrustManager
) tm;
73
fail("Unable to find
X509TrustManager
");
78
X509TrustManager
tm = getTrustManager();
X509CertChainBuildingTest.java
36
import javax.net.ssl.
X509TrustManager
;
39
* Test that all {@link
X509TrustManager
} build the correct certificate chain during
174
private static
X509TrustManager
getTrustManager(KeyStore ks, Provider p) throws Exception {
178
if (tm instanceof
X509TrustManager
) {
179
return (
X509TrustManager
) tm;
182
fail("Unable to find
X509TrustManager
");
203
X509TrustManager
tm = getTrustManager(ks, p);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
X509TrustManagerTest.java
7
import javax.net.ssl.
X509TrustManager
;
62
* javax.net.ssl.
X509TrustManager
#checkClientTrusted(X509Certificate[] chain, String authType)
76
* javax.net.ssl.
X509TrustManager
#checkClientTrusted(X509Certificate[] chain, String authType)
85
* javax.net.ssl.
X509TrustManager
#checkServerTrusted(X509Certificate[] chain, String authType)
119
* javax.net.ssl.
X509TrustManager
#checkServerTrusted(X509Certificate[] chain, String authType)
133
* javax.net.ssl.
X509TrustManager
#checkServerTrusted(X509Certificate[] chain, String authType)
142
* javax.net.ssl.
X509TrustManager
#getAcceptedIssuers()
/external/apache-http/android/src/android/net/http/
CertificateChainValidator.java
44
import javax.net.ssl.
X509TrustManager
;
65
private
X509TrustManager
mTrustManager;
83
if (tm instanceof
X509TrustManager
) {
84
mTrustManager = (
X509TrustManager
) tm;
95
"None of the X.509 TrustManagers are
X509TrustManager
");
230
X509TrustManager
x509TrustManager
= SSLParametersImpl.getDefaultX509TrustManager();
234
Method method =
x509TrustManager
.getClass().getMethod("checkServerTrusted",
238
method.invoke(
x509TrustManager
, chain, authType, domain);
240
x509TrustManager
.checkServerTrusted(chain, authType)
[
all
...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
TestTrustManager.java
24
import javax.net.ssl.
X509TrustManager
;
40
private final
X509TrustManager
trustManager;
54
} else if (trustManager instanceof
X509TrustManager
) {
55
return new TestTrustManager((
X509TrustManager
) trustManager);
66
public TestTrustManager(
X509TrustManager
trustManager) {
91
out.print("(fallback to
X509TrustManager
) ");
113
out.print("(fallback to
X509TrustManager
) ");
156
out.print("(fallback to
X509TrustManager
) ");
178
out.print("(fallback to
X509TrustManager
) ");
/libcore/luni/src/test/java/libcore/javax/net/ssl/
TrustManagerFactoryTest.java
35
import javax.net.ssl.
X509TrustManager
;
137
if (trustManager instanceof
X509TrustManager
) {
138
test_X509TrustManager((
X509TrustManager
) trustManager);
143
private void test_X509TrustManager(
X509TrustManager
tm) throws Exception {
236
if (!(trustManager instanceof
X509TrustManager
)) {
239
X509TrustManager
tm = (
X509TrustManager
) trustManager;
257
X509TrustManager
trustManager = (
X509TrustManager
) tmf.getTrustManagers()[0];
298
X509TrustManager
trustManager = (X509TrustManager) rootCa.trustManagers[0]
[
all
...]
/cts/tests/tests/networksecurityconfig/networksecurityconfig-basic-domain/src/android/security/net/config/cts/
DomainConfigTest.java
21
import javax.net.ssl.
X509TrustManager
;
37
X509TrustManager
x509tm = TestUtils.getDefaultTrustManager();
/external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/
DummyTrustManager.java
21
import javax.net.ssl.
X509TrustManager
;
28
public class DummyTrustManager implements
X509TrustManager
{
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
X509TrustManagerImpl.java
3
import javax.net.ssl.
X509TrustManager
;
7
public class X509TrustManagerImpl implements
X509TrustManager
{
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
CaCertManagementTest.java
33
import javax.net.ssl.
X509TrustManager
;
107
private static
X509TrustManager
getFirstX509TrustManager(TrustManagerFactory tmf) {
109
if (trustManager instanceof
X509TrustManager
) {
110
return (
X509TrustManager
) trustManager;
113
throw new RuntimeException("Unable to find
X509TrustManager
");
145
// Verify that the user added CA is reflected in the default
X509TrustManager
.
150
X509TrustManager
tm = getFirstX509TrustManager(tmf);
/frameworks/base/core/java/android/net/http/
X509TrustManagerExtensions.java
31
import javax.net.ssl.
X509TrustManager
;
34
*
X509TrustManager
wrapper exposing Android-added features.
45
private final
X509TrustManager
mTrustManager;
52
* @param tm A {@link
X509TrustManager
} as returned by TrustManagerFactory.getInstance();
55
public X509TrustManagerExtensions(
X509TrustManager
tm) throws IllegalArgumentException {
90
* <p>See {@link
X509TrustManager
#checkServerTrusted(X509Certificate[], String)} for a
122
* <p>Since {@link
X509TrustManager
#checkServerTrusted} may allow its parameter {@code chain} to
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/
ResourceSourceTest.java
32
import javax.net.ssl.
X509TrustManager
;
92
if (tm instanceof
X509TrustManager
) {
93
X509Certificate[] trustedCerts = ((
X509TrustManager
) tm).getAcceptedIssuers();
101
fail("Unable to find
X509TrustManager
");
/libcore/ojluni/src/main/java/sun/security/ssl/
SSLContextImpl.java
51
private
X509TrustManager
trustManager;
119
private
X509TrustManager
chooseTrustManager(TrustManager[] tm)
121
// We only use the first instance of
X509TrustManager
passed to us.
123
if (tm[i] instanceof
X509TrustManager
) {
131
return (
X509TrustManager
)tm[i];
134
(
X509TrustManager
)tm[i]);
139
// nothing found, return a dummy
X509TrustManager
.
227
X509TrustManager
getX509TrustManager() {
777
implements
X509TrustManager
{
780
private final
X509TrustManager
tm
[
all
...]
TrustManagerFactoryImpl.java
41
private
X509TrustManager
trustManager = null;
83
abstract
X509TrustManager
getInstance(KeyStore ks) throws KeyStoreException;
85
abstract
X509TrustManager
getInstance(ManagerFactoryParameters spec)
239
X509TrustManager
getInstance(KeyStore ks) throws KeyStoreException {
242
X509TrustManager
getInstance(ManagerFactoryParameters spec)
251
X509TrustManager
getInstance(KeyStore ks) throws KeyStoreException {
254
X509TrustManager
getInstance(ManagerFactoryParameters spec)
/external/conscrypt/src/test/java/org/conscrypt/
TrustManagerImplTest.java
34
import javax.net.ssl.
X509TrustManager
;
96
X509TrustManager
tm = trustManager(root);
126
X509TrustManager
tm = trustManager(root);
173
private
X509TrustManager
trustManager(X509Certificate ca) throws Exception {
224
private void assertValid(X509Certificate[] chain,
X509TrustManager
tm) throws Exception {
232
private void assertValidPinned(X509Certificate[] chain,
X509TrustManager
tm, String hostname,
237
private void assertValidPinned(X509Certificate[] chain,
X509TrustManager
tm, String hostname,
256
private void assertInvalid(X509Certificate[] chain,
X509TrustManager
tm) {
269
private void assertInvalidPinned(X509Certificate[] chain,
X509TrustManager
tm, String hostname)
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
TestUtils.java
36
import javax.net.ssl.
X509TrustManager
;
70
public static
X509TrustManager
getDefaultTrustManager() throws Exception {
74
if (tm instanceof
X509TrustManager
) {
75
return (
X509TrustManager
) tm;
78
fail("Unable to find
X509TrustManager
");
/external/conscrypt/src/main/java/org/conscrypt/
SSLParametersImpl.java
52
import javax.net.ssl.
X509TrustManager
;
68
private static volatile
X509TrustManager
defaultX509TrustManager;
87
private final
X509TrustManager
x509TrustManager
;
154
// initialize
x509TrustManager
156
x509TrustManager
= getDefaultX509TrustManager();
158
x509TrustManager
= findFirstX509TrustManager(tms);
171
boolean x509CipherSuitesNeeded = (x509KeyManager != null) || (
x509TrustManager
!= null);
229
protected
X509TrustManager
getX509TrustManager() {
230
return
x509TrustManager
;
[
all
...]
/cts/tests/tests/networksecurityconfig/networksecurityconfig-cleartext/src/android/security/net/config/cts/
CleartextPermittedTest.java
21
import javax.net.ssl.
X509TrustManager
;
/frameworks/base/core/java/android/security/net/config/
ApplicationConfig.java
23
import javax.net.ssl.
X509TrustManager
;
39
private
X509TrustManager
mTrustManager;
116
* Returns the {@link
X509TrustManager
} that implements the checking of trust anchors and
119
public
X509TrustManager
getTrustManager() {
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/
X509ExtendedTrustManager.java
28
import javax.net.ssl.
X509TrustManager
;
34
* Instance of this class is an extension of <code>
X509TrustManager
</code>.
52
* @see
X509TrustManager
58
public abstract class X509ExtendedTrustManager implements
X509TrustManager
{
/external/conscrypt/src/openjdk/java/org/conscrypt/
Platform.java
44
import javax.net.ssl.
X509TrustManager
;
152
public static void checkClientTrusted(
X509TrustManager
tm, X509Certificate[] chain,
162
public static void checkServerTrusted(
X509TrustManager
tm, X509Certificate[] chain,
172
public static void checkClientTrusted(
X509TrustManager
tm, X509Certificate[] chain,
182
public static void checkServerTrusted(
X509TrustManager
tm, X509Certificate[] chain,
/external/conscrypt/src/platform/java/org/conscrypt/
Platform.java
53
import javax.net.ssl.
X509TrustManager
;
141
private static boolean checkTrusted(String methodName,
X509TrustManager
tm,
162
public static void checkClientTrusted(
X509TrustManager
tm, X509Certificate[] chain,
174
public static void checkServerTrusted(
X509TrustManager
tm, X509Certificate[] chain,
186
public static void checkClientTrusted(
X509TrustManager
tm, X509Certificate[] chain,
198
public static void checkServerTrusted(
X509TrustManager
tm, X509Certificate[] chain,
/external/conscrypt/src/compat/java/org/conscrypt/
Platform.java
43
import javax.net.ssl.
X509TrustManager
;
188
private static boolean checkTrusted(String methodName,
X509TrustManager
tm,
209
public static void checkClientTrusted(
X509TrustManager
tm, X509Certificate[] chain,
218
public static void checkServerTrusted(
X509TrustManager
tm, X509Certificate[] chain,
227
public static void checkClientTrusted(
X509TrustManager
tm, X509Certificate[] chain,
236
public static void checkServerTrusted(
X509TrustManager
tm, X509Certificate[] chain,
Completed in 1332 milliseconds
1
2
3
4
5
6