Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/core/java/android/security/net/config/
DDirectoryCertificateSource.java29 import java.security.cert.Certificate;
30 import java.security.cert.CertificateException;
31 import java.security.cert.CertificateFactory;
32 import java.security.cert.X509Certificate;
80 X509Certificate cert = readCertificate(caFile); in getCertificates() local
81 if (cert != null) { in getCertificates()
82 certs.add(cert); in getCertificates()
92 public X509Certificate findBySubjectAndPublicKey(final X509Certificate cert) { in findBySubjectAndPublicKey() argument
93 return findCert(cert.getSubjectX500Principal(), new CertSelector() { in findBySubjectAndPublicKey()
96 return ca.getPublicKey().equals(cert.getPublicKey()); in findBySubjectAndPublicKey()
[all …]
DKeyStoreCertificateSource.java22 import java.security.cert.Certificate;
23 import java.security.cert.X509Certificate;
61 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in ensureInitialized() local
62 if (cert != null) { in ensureInitialized()
63 certificates.add(cert); in ensureInitialized()
64 localIndex.index(cert); in ensureInitialized()
76 public X509Certificate findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument
78 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey()
86 public X509Certificate findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument
88 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature()
[all …]
DResourceCertificateSource.java23 import java.security.cert.Certificate;
24 import java.security.cert.CertificateException;
25 import java.security.cert.CertificateFactory;
26 import java.security.cert.X509Certificate;
69 for (Certificate cert : certs) { in ensureInitialized()
70 certificates.add((X509Certificate) cert); in ensureInitialized()
71 indexLocal.index((X509Certificate) cert); in ensureInitialized()
86 public X509Certificate findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument
88 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey()
96 public X509Certificate findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument
[all …]
DCertificatesEntryRef.java20 import java.security.cert.X509Certificate;
40 for (X509Certificate cert : mSource.getCertificates()) { in getTrustAnchors()
41 anchors.add(new TrustAnchor(cert, mOverridesPins)); in getTrustAnchors()
46 public TrustAnchor findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument
47 X509Certificate foundCert = mSource.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey()
55 public TrustAnchor findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument
56 X509Certificate foundCert = mSource.findByIssuerAndSignature(cert); in findByIssuerAndSignature()
64 public Set<X509Certificate> findAllCertificatesByIssuerAndSignature(X509Certificate cert) { in findAllCertificatesByIssuerAndSignature() argument
65 return mSource.findAllByIssuerAndSignature(cert); in findAllCertificatesByIssuerAndSignature()
DTrustedCertificateStoreAdapter.java20 import java.security.cert.Certificate;
21 import java.security.cert.X509Certificate;
36 public X509Certificate findIssuer(X509Certificate cert) { in findIssuer() argument
37 TrustAnchor anchor = mConfig.findTrustAnchorByIssuerAndSignature(cert); in findIssuer()
45 public Set<X509Certificate> findAllIssuers(X509Certificate cert) { in findAllIssuers() argument
46 return mConfig.findAllCertificatesByIssuerAndSignature(cert); in findAllIssuers()
50 public X509Certificate getTrustAnchor(X509Certificate cert) { in getTrustAnchor() argument
51 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in getTrustAnchor()
59 public boolean isUserAddedCertificate(X509Certificate cert) { in isUserAddedCertificate() argument
61 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in isUserAddedCertificate()
DNetworkSecurityConfig.java22 import java.security.cert.X509Certificate;
86 X509Certificate cert = anchor.certificate; in getTrustAnchors() local
87 if (!anchorMap.containsKey(cert)) { in getTrustAnchors()
88 anchorMap.put(cert, anchor); in getTrustAnchors()
121 public TrustAnchor findTrustAnchorBySubjectAndPublicKey(X509Certificate cert) { in findTrustAnchorBySubjectAndPublicKey() argument
123 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey()
132 public TrustAnchor findTrustAnchorByIssuerAndSignature(X509Certificate cert) { in findTrustAnchorByIssuerAndSignature() argument
134 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature()
143 public Set<X509Certificate> findAllCertificatesByIssuerAndSignature(X509Certificate cert) { in findAllCertificatesByIssuerAndSignature() argument
146 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert)); in findAllCertificatesByIssuerAndSignature()
DCertificateSource.java19 import java.security.cert.X509Certificate;
25 X509Certificate findBySubjectAndPublicKey(X509Certificate cert); in findBySubjectAndPublicKey() argument
26 X509Certificate findByIssuerAndSignature(X509Certificate cert); in findByIssuerAndSignature() argument
27 Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert); in findAllByIssuerAndSignature() argument
DNetworkSecurityTrustManager.java24 import java.security.cert.CertificateException;
25 import java.security.cert.X509Certificate;
129 X509Certificate cert = chain.get(i); in checkPins() local
130 byte[] encodedSPKI = cert.getPublicKey().getEncoded(); in checkPins()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestCertificateSource.java20 import java.security.cert.X509Certificate;
32 for (X509Certificate cert : certificates) { in TestCertificateSource()
33 mIndex.index(cert); in TestCertificateSource()
43 public X509Certificate findBySubjectAndPublicKey(X509Certificate cert) { in findBySubjectAndPublicKey() argument
44 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey()
52 public X509Certificate findByIssuerAndSignature(X509Certificate cert) { in findByIssuerAndSignature() argument
53 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature()
61 public Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert) { in findAllByIssuerAndSignature() argument
63 for (java.security.cert.TrustAnchor anchor : mIndex.findAllByIssuerAndSignature(cert)) { in findAllByIssuerAndSignature()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUSocketFactory.java20 import java.security.cert.CertPath;
21 import java.security.cert.CertPathValidator;
22 import java.security.cert.CertPathValidatorException;
23 import java.security.cert.Certificate;
24 import java.security.cert.CertificateException;
25 import java.security.cert.CertificateFactory;
26 import java.security.cert.PKIXCertPathChecker;
27 import java.security.cert.PKIXParameters;
28 import java.security.cert.TrustAnchor;
29 import java.security.cert.X509Certificate;
[all …]
DWiFiKeyManager.java12 import java.security.cert.Certificate;
13 import java.security.cert.X509Certificate;
45 Certificate cert = mKeyStore.getCertificate(alias); in enableClientAuth() local
46 if ((cert instanceof X509Certificate) && mKeyStore.getKey(alias, null) != null) { in enableClientAuth()
47 X509Certificate x509Certificate = (X509Certificate) cert; in enableClientAuth()
50 mAliases.put(issuer, new String[]{alias, cert.getPublicKey().getAlgorithm()}); in enableClientAuth()
DClientKeyManager.java14 import java.security.cert.Certificate;
15 import java.security.cert.X509Certificate;
44 for (X509Certificate cert : clientCerts) { in reloadKeys()
45 certArray[n++] = cert; in reloadKeys()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAbstractVerifier.java37 import java.security.cert.Certificate;
38 import java.security.cert.CertificateParsingException;
39 import java.security.cert.X509Certificate;
116 public final void verify(String host, X509Certificate cert) in verify() argument
118 String[] cns = getCNs(cert); in verify()
119 String[] subjectAlts = getDNSSubjectAlts(cert); in verify()
210 public static String[] getCNs(X509Certificate cert) { in getCNs() argument
212 new AndroidDistinguishedNameParser(cert.getSubjectX500Principal()); in getCNs()
239 public static String[] getDNSSubjectAlts(X509Certificate cert) { in getDNSSubjectAlts() argument
243 c = cert.getSubjectAlternativeNames(); in getDNSSubjectAlts()
DX509HostnameVerifier.java39 import java.security.cert.X509Certificate;
71 void verify(String host, X509Certificate cert) throws SSLException; in verify() argument
/frameworks/base/core/java/android/net/http/
DSslError.java19 import java.security.cert.X509Certificate;
140 int error, SslCertificate cert, String url) { in SslErrorFromChromiumErrorCode() argument
145 return new SslError(SSL_IDMISMATCH, cert, url); in SslErrorFromChromiumErrorCode()
147 return new SslError(SSL_DATE_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
149 return new SslError(SSL_UNTRUSTED, cert, url); in SslErrorFromChromiumErrorCode()
151 return new SslError(SSL_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
DX509TrustManagerExtensions.java27 import java.security.cert.CertificateException;
28 import java.security.cert.X509Certificate;
129 public boolean isUserAddedCertificate(X509Certificate cert) { in isUserAddedCertificate() argument
130 return UserCertificateSource.getInstance().findBySubjectAndPublicKey(cert) != null; in isUserAddedCertificate()
DSslCertificate.java32 import java.security.cert.Certificate;
33 import java.security.cert.CertificateEncodingException;
34 import java.security.cert.CertificateException;
35 import java.security.cert.CertificateFactory;
36 import java.security.cert.X509Certificate;
132 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in restoreState() local
133 x509Certificate = (X509Certificate) cert; in restoreState()
/frameworks/base/core/java/android/content/pm/
DSignature.java28 import java.security.cert.Certificate;
29 import java.security.cert.CertificateEncodingException;
30 import java.security.cert.CertificateException;
31 import java.security.cert.CertificateFactory;
32 import java.security.cert.X509Certificate;
176 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey() local
177 return cert.getPublicKey(); in getPublicKey()
296 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is); in bounce() local
297 final Signature sPrime = new Signature(cert.getEncoded()); in bounce()
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java30 import java.security.cert.CertificateEncodingException;
31 import java.security.cert.CertificateException;
32 import java.security.cert.CertificateFactory;
33 import java.security.cert.X509Certificate;
192 private void writeCertificates(Parcel dest, X509Certificate[] cert) { in writeCertificates() argument
193 if (cert != null && cert.length != 0) { in writeCertificates()
194 dest.writeInt(cert.length); in writeCertificates()
195 for (int i = 0; i < cert.length; i++) { in writeCertificates()
196 writeCertificate(dest, cert[i]); in writeCertificates()
203 private void writeCertificate(Parcel dest, X509Certificate cert) { in writeCertificate() argument
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DDelegatingX509Certificate.java26 import java.security.cert.CertificateEncodingException;
27 import java.security.cert.CertificateException;
28 import java.security.cert.CertificateExpiredException;
29 import java.security.cert.CertificateNotYetValidException;
30 import java.security.cert.CertificateParsingException;
31 import java.security.cert.X509Certificate;
DAndroidKeyStoreSpi.java47 import java.security.cert.Certificate;
48 import java.security.cert.CertificateEncodingException;
49 import java.security.cert.CertificateException;
50 import java.security.cert.CertificateFactory;
51 import java.security.cert.X509Certificate;
180 X509Certificate cert = toCertificate(encodedCert); in getCertificateForPrivateKeyEntry() local
181 if (cert == null) { in getCertificateForPrivateKeyEntry()
193 return wrapIntoKeyStoreCertificate(privateKeyAlias, mUid, cert); in getCertificateForPrivateKeyEntry()
199 return cert; in getCertificateForPrivateKeyEntry()
744 public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException { in engineSetCertificateEntry() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java35 import java.security.cert.CertificateFactory;
36 import java.security.cert.Certificate;
37 import java.security.cert.X509Certificate;
176 String signature, X509Certificate cert) throws Exception { in verifySignature() argument
178 signer.initVerify(cert); in verifySignature()
195 private String runTest(String cert, String content, String version, String required, String sig) in runTest() argument
198 overrideCert(cert); in runTest()
205 private String runTestWithoutSig(String cert, String content, String version, String required) in runTestWithoutSig() argument
208 return runTest(cert, content, version, required, sig); in runTestWithoutSig()
/frameworks/base/services/core/java/com/android/server/pm/
DSELinuxMMAC.java171 String cert = parser.getAttributeValue(null, "signature"); in readSignerOrThrow() local
172 if (cert != null) { in readSignerOrThrow()
173 pb.addSignature(cert); in readSignerOrThrow()
387 for (Signature cert : mCerts) { in toString()
388 sb.append("cert=" + cert.toCharsString().substring(0, 11) + "... "); in toString()
474 public PolicyBuilder addSignature(String cert) { in addSignature() argument
475 if (cert == null) { in addSignature()
476 String err = "Invalid signature value " + cert; in addSignature()
480 mCerts.add(new Signature(cert)); in addSignature()
/frameworks/base/keystore/java/android/security/
DCredentials.java37 import java.security.cert.Certificate;
38 import java.security.cert.CertificateEncodingException;
39 import java.security.cert.CertificateException;
40 import java.security.cert.CertificateFactory;
41 import java.security.cert.X509Certificate;
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAndroidAppAssetMatcher.java43 for (String cert : androidAppAsset.getCertFingerprints()) { in matches()
44 if (certs.contains(cert)) { in matches()

1234