Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/security/net/config/
DDirectoryCertificateSource.java31 import java.security.cert.CertificateException;
32 import java.security.cert.CertificateFactory;
33 import java.security.cert.X509Certificate;
77 X509Certificate cert = readCertificate(caFile); in getCertificates() local
78 if (cert != null) { in getCertificates()
79 certs.add(cert); in getCertificates()
89 public X509Certificate findBySubjectAndPublicKey(final X509Certificate cert) { in findBySubjectAndPublicKey() argument
90 return findCert(cert.getSubjectX500Principal(), new CertSelector() { in findBySubjectAndPublicKey()
93 return ca.getPublicKey().equals(cert.getPublicKey()); in findBySubjectAndPublicKey()
99 public X509Certificate findByIssuerAndSignature(final X509Certificate cert) {
[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()
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
DNetworkSecurityConfig.java24 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()
/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/identity/java/android/security/identity/
DCredstoreWritableIdentityCredential.java24 import java.security.cert.Certificate;
25 import java.security.cert.CertificateException;
26 import java.security.cert.CertificateFactory;
27 import java.security.cert.X509Certificate;
65 for (Certificate cert : certs) { in getCredentialKeyCertificateChain()
66 x509Certs.add((X509Certificate) cert); in getCredentialKeyCertificateChain()
97 X509Certificate cert = profile.getReaderCertificate(); in personalize() local
98 if (cert != null) { in personalize()
100 acpParcels[n].readerCertificate = cert.getEncoded(); in personalize()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtils.java41 import java.security.cert.CertPath;
42 import java.security.cert.CertPathBuilder;
43 import java.security.cert.CertPathBuilderException;
44 import java.security.cert.CertPathValidator;
45 import java.security.cert.CertPathValidatorException;
46 import java.security.cert.CertStore;
47 import java.security.cert.CertificateException;
48 import java.security.cert.CertificateFactory;
49 import java.security.cert.CollectionCertStoreParameters;
50 import java.security.cert.PKIXBuilderParameters;
[all …]
/frameworks/base/core/java/android/net/http/
DSslError.java22 import java.security.cert.X509Certificate;
146 int error, SslCertificate cert, String url) { in SslErrorFromChromiumErrorCode() argument
151 return new SslError(SSL_IDMISMATCH, cert, url); in SslErrorFromChromiumErrorCode()
153 return new SslError(SSL_DATE_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
155 return new SslError(SSL_UNTRUSTED, cert, url); in SslErrorFromChromiumErrorCode()
157 return new SslError(SSL_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
DX509TrustManagerExtensions.java25 import java.security.cert.CertificateException;
26 import java.security.cert.X509Certificate;
127 public boolean isUserAddedCertificate(X509Certificate cert) { in isUserAddedCertificate() argument
128 return UserCertificateSource.getInstance().findBySubjectAndPublicKey(cert) != null; in isUserAddedCertificate()
/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;
118 public final void verify(String host, X509Certificate cert) in verify() argument
120 String[] cns = getCNs(cert); in verify()
121 String[] subjectAlts = getDNSSubjectAlts(cert); in verify()
212 public static String[] getCNs(X509Certificate cert) { in getCNs() argument
214 new AndroidDistinguishedNameParser(cert.getSubjectX500Principal()); in getCNs()
241 public static String[] getDNSSubjectAlts(X509Certificate cert) { in getDNSSubjectAlts() argument
245 c = cert.getSubjectAlternativeNames(); in getDNSSubjectAlts()
/frameworks/base/services/core/java/com/android/server/security/
DFileIntegrityService.java41 import java.security.cert.Certificate;
42 import java.security.cert.CertificateException;
43 import java.security.cert.CertificateFactory;
44 import java.security.cert.X509Certificate;
149 for (File cert : files) { in loadCertificatesFromDirectory()
150 byte[] certificateBytes = Files.readAllBytes(cert.toPath()); in loadCertificatesFromDirectory()
152 Slog.w(TAG, "The certificate file is empty, ignoring " + cert); in loadCertificatesFromDirectory()
/frameworks/base/core/java/android/content/pm/
DApkChecksum.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;
115 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is); in getInstallerCertificate() local
116 return cert; in getInstallerCertificate()
DSignature.java33 import java.security.cert.Certificate;
34 import java.security.cert.CertificateEncodingException;
35 import java.security.cert.CertificateException;
36 import java.security.cert.CertificateFactory;
37 import java.security.cert.X509Certificate;
227 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey() local
228 return cert.getPublicKey(); in getPublicKey()
380 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is); in bounce() local
381 final Signature sPrime = new Signature(cert.getEncoded()); in bounce()
/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;
DAttestationUtils.java32 import java.security.cert.Certificate;
33 import java.security.cert.CertificateFactory;
34 import java.security.cert.X509Certificate;
96 for (final byte[] cert : rawChain) { in parseCertificateChain()
97 concatenatedRawChain.write(cert); in parseCertificateChain()
/frameworks/base/services/tests/servicestests/assets/PackageSignaturesTest/xml/
DREADME9 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8
25 <cert index="16" key="3082016c30820111a003020102020900ca0fb64dfb66e772300a06082a8648ce3d
46 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
51 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
57 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
/frameworks/base/core/java/android/util/apk/
DWrappedX509Certificate.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.X509Certificate;
/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/core/java/android/security/keystore/recovery/
DRecoveryCertPath.java24 import java.security.cert.CertPath;
25 import java.security.cert.CertificateEncodingException;
26 import java.security.cert.CertificateException;
27 import java.security.cert.CertificateFactory;
DX509CertificateParsingUtils.java21 import java.security.cert.CertificateException;
22 import java.security.cert.CertificateFactory;
23 import java.security.cert.X509Certificate;
/frameworks/base/keystore/java/android/security/
DCredentials.java34 import java.security.cert.Certificate;
35 import java.security.cert.CertificateEncodingException;
36 import java.security.cert.CertificateException;
37 import java.security.cert.CertificateFactory;
38 import java.security.cert.X509Certificate;
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/
DCertUtils.java23 import java.security.cert.CertificateException;
24 import java.security.cert.CertificateFactory;
25 import java.security.cert.X509Certificate;

123456