OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.net; | 5 package org.chromium.net; |
6 | 6 |
7 import android.content.BroadcastReceiver; | 7 import android.content.BroadcastReceiver; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.content.IntentFilter; | 10 import android.content.IntentFilter; |
11 import android.security.KeyChain; | 11 import android.security.KeyChain; |
12 import android.util.Log; | 12 import android.util.Log; |
13 | 13 |
14 import org.chromium.base.JNINamespace; | 14 import org.chromium.base.JNINamespace; |
15 import org.chromium.net.CertVerifyResultAndroid; | |
16 | 15 |
17 import java.io.ByteArrayInputStream; | 16 import java.io.ByteArrayInputStream; |
18 import java.io.IOException; | 17 import java.io.IOException; |
19 import java.security.KeyStore; | 18 import java.security.KeyStore; |
20 import java.security.KeyStoreException; | 19 import java.security.KeyStoreException; |
21 import java.security.NoSuchAlgorithmException; | 20 import java.security.NoSuchAlgorithmException; |
22 import java.security.cert.CertificateException; | 21 import java.security.cert.CertificateException; |
23 import java.security.cert.CertificateExpiredException; | 22 import java.security.cert.CertificateExpiredException; |
| 23 import java.security.cert.CertificateFactory; |
24 import java.security.cert.CertificateNotYetValidException; | 24 import java.security.cert.CertificateNotYetValidException; |
25 import java.security.cert.CertificateFactory; | |
26 import java.security.cert.CertificateParsingException; | |
27 import java.security.cert.X509Certificate; | 25 import java.security.cert.X509Certificate; |
28 import java.util.List; | 26 import java.util.List; |
29 | 27 |
30 import javax.net.ssl.TrustManager; | 28 import javax.net.ssl.TrustManager; |
31 import javax.net.ssl.TrustManagerFactory; | 29 import javax.net.ssl.TrustManagerFactory; |
32 import javax.net.ssl.X509TrustManager; | 30 import javax.net.ssl.X509TrustManager; |
33 | 31 |
34 @JNINamespace("net") | 32 @JNINamespace("net") |
35 public class X509Util { | 33 public class X509Util { |
36 | 34 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 * Notify the native net::CertDatabase instance that the system database has
been updated. | 291 * Notify the native net::CertDatabase instance that the system database has
been updated. |
294 */ | 292 */ |
295 private static native void nativeNotifyKeyChainChanged(); | 293 private static native void nativeNotifyKeyChainChanged(); |
296 | 294 |
297 /** | 295 /** |
298 * Returns the application context. | 296 * Returns the application context. |
299 */ | 297 */ |
300 private static native Context nativeGetApplicationContext(); | 298 private static native Context nativeGetApplicationContext(); |
301 | 299 |
302 } | 300 } |
OLD | NEW |