/frameworks/base/core/java/android/security/net/config/ |
D | DirectoryCertificateSource.java | 31 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 …]
|
D | KeyStoreCertificateSource.java | 22 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 …]
|
D | ResourceCertificateSource.java | 23 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 …]
|
D | CertificatesEntryRef.java | 20 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()
|
D | TrustedCertificateStoreAdapter.java | 20 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()
|
D | CertificateSource.java | 19 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
|
D | NetworkSecurityConfig.java | 24 import java.security.cert.X509Certificate; 94 X509Certificate cert = anchor.certificate; in getTrustAnchors() local 95 if (!anchorMap.containsKey(cert)) { in getTrustAnchors() 96 anchorMap.put(cert, anchor); in getTrustAnchors() 134 public TrustAnchor findTrustAnchorBySubjectAndPublicKey(X509Certificate cert) { in findTrustAnchorBySubjectAndPublicKey() argument 136 TrustAnchor anchor = ref.findBySubjectAndPublicKey(cert); in findTrustAnchorBySubjectAndPublicKey() 145 public TrustAnchor findTrustAnchorByIssuerAndSignature(X509Certificate cert) { in findTrustAnchorByIssuerAndSignature() argument 147 TrustAnchor anchor = ref.findByIssuerAndSignature(cert); in findTrustAnchorByIssuerAndSignature() 156 public Set<X509Certificate> findAllCertificatesByIssuerAndSignature(X509Certificate cert) { in findAllCertificatesByIssuerAndSignature() argument 159 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert)); in findAllCertificatesByIssuerAndSignature()
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestCertificateSource.java | 20 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/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | CertUtils.java | 41 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/ |
D | SslError.java | 22 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()
|
/frameworks/base/identity/java/android/security/identity/ |
D | CredstoreWritableIdentityCredential.java | 24 import java.security.cert.Certificate; 25 import java.security.cert.CertificateException; 26 import java.security.cert.CertificateFactory; 27 import java.security.cert.X509Certificate; 66 for (Certificate cert : certs) { in getCredentialKeyCertificateChain() 67 x509Certs.add((X509Certificate) cert); in getCredentialKeyCertificateChain() 98 X509Certificate cert = profile.getReaderCertificate(); in personalize() local 99 if (cert != null) { in personalize() 101 acpParcels[n].readerCertificate = cert.getEncoded(); in personalize()
|
/frameworks/native/libs/binder/tests/ |
D | RpcTlsUtilsTest.cpp | 70 auto cert = makeSelfSignedCert(pkey.get(), kCertValidSeconds); in TEST_P() local 71 ASSERT_NE(nullptr, cert); in TEST_P() 72 auto certData = serializeCertificate(cert.get(), GetParam()); in TEST_P() 75 EXPECT_EQ(0, X509_cmp(cert.get(), deserializedCert.get())); in TEST_P() 100 auto cert = makeSelfSignedCert(deserializedPkey.get(), kCertValidSeconds); in TEST_P() local 101 ASSERT_NE(nullptr, cert); in TEST_P() 102 auto certData = serializeCertificate(cert.get(), certificateFormat); in TEST_P() 105 EXPECT_EQ(0, X509_cmp(cert.get(), deserializedCert.get())); in TEST_P()
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | AbstractVerifier.java | 37 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/ |
D | AttestationVerificationSelfTrustedVerifierForTesting.java | 42 import java.security.cert.CertPath; 43 import java.security.cert.CertPathValidator; 44 import java.security.cert.CertificateEncodingException; 45 import java.security.cert.CertificateException; 46 import java.security.cert.CertificateFactory; 47 import java.security.cert.PKIXParameters; 48 import java.security.cert.TrustAnchor; 49 import java.security.cert.X509Certificate;
|
D | FileIntegrityService.java | 55 import java.security.cert.Certificate; 56 import java.security.cert.CertificateEncodingException; 57 import java.security.cert.CertificateException; 58 import java.security.cert.CertificateFactory; 59 import java.security.cert.X509Certificate; 235 for (var cert : mTrustedCertificates) { in verifyPkcs7DetachedSignature() 237 byte[] derEncoded = cert.getEncoded(); in verifyPkcs7DetachedSignature() 266 for (File cert : files) { in loadCertificatesFromDirectory() 267 byte[] certificateBytes = Files.readAllBytes(cert.toPath()); in loadCertificatesFromDirectory()
|
/frameworks/base/core/java/android/content/pm/ |
D | ApkChecksum.java | 28 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()
|
D | Signature.java | 33 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; 228 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey() local 229 return cert.getPublicKey(); in getPublicKey() 402 final X509Certificate cert = (X509Certificate) cf.generateCertificate(is); in bounce() local 403 final Signature sPrime = new Signature(cert.getEncoded()); in bounce()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | DelegatingX509Certificate.java | 26 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;
|
D | AttestationUtils.java | 32 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/PackageManagerServiceTests/server/assets/PackageSignaturesTest/xml/ |
D | README | 9 --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/native/libs/binder/tests/rpc_fuzzer/ |
D | main.cpp | 76 bssl::UniquePtr<X509> cert; member 91 ret.cert.reset(PEM_read_bio_X509(certBio.get(), nullptr, nullptr, nullptr)); in readServerKeyAndCert() 92 CHECK_NE(ret.cert.get(), nullptr); in readServerKeyAndCert() 102 CHECK(X509_up_ref(sAuth.cert.get())); in createServerRpcAuth() 103 bssl::UniquePtr<X509> cert(sAuth.cert.get()); in createServerRpcAuth() local 105 return std::make_unique<RpcAuthPreSigned>(std::move(pkey), std::move(cert)); in createServerRpcAuth()
|
/frameworks/base/core/java/android/util/apk/ |
D | WrappedX509Certificate.java | 26 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/ |
D | CertPinInstallReceiverTest.java | 35 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/ |
D | RecoveryCertPath.java | 24 import java.security.cert.CertPath; 25 import java.security.cert.CertificateEncodingException; 26 import java.security.cert.CertificateException; 27 import java.security.cert.CertificateFactory;
|
D | X509CertificateParsingUtils.java | 21 import java.security.cert.CertificateException; 22 import java.security.cert.CertificateFactory; 23 import java.security.cert.X509Certificate;
|