Lines Matching refs:cert
41 import java.security.cert.Certificate;
42 import java.security.cert.CertificateEncodingException;
43 import java.security.cert.CertificateException;
44 import java.security.cert.CertificateFactory;
45 import java.security.cert.X509Certificate;
107 for (X509Certificate cert : mCaCerts) {
108 certs.add(cert.getEncoded());
125 for (byte[] cert : certs) {
126 parseCert(cert);
141 X509Certificate cert = (X509Certificate)
144 if (isCa(cert)) {
145 Log.d(TAG, "got a CA cert");
146 mCaCerts.add(cert);
148 Log.d(TAG, "got a user cert");
149 mUserCert = cert;
156 private boolean isCa(X509Certificate cert) {
159 byte[] asn1EncodedBytes = cert.getExtensionValue("2.5.29.19");
346 X509Certificate cert = (X509Certificate) c;
347 if (isCa(cert)) {
348 mCaCerts.add(cert);