Home
last modified time | relevance | path

Searched refs:certs (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/java/android/security/net/config/
DRootTrustManager.java62 public void checkClientTrusted(X509Certificate[] certs, String authType, Socket socket) in checkClientTrusted() argument
67 config.getTrustManager().checkClientTrusted(certs, authType, socket); in checkClientTrusted()
71 public void checkClientTrusted(X509Certificate[] certs, String authType, SSLEngine engine) in checkClientTrusted() argument
76 config.getTrustManager().checkClientTrusted(certs, authType, engine); in checkClientTrusted()
80 public void checkServerTrusted(X509Certificate[] certs, String authType, Socket socket) in checkServerTrusted() argument
90 config.getTrustManager().checkServerTrusted(certs, authType, socket); in checkServerTrusted()
93 checkServerTrusted(certs, authType); in checkServerTrusted()
98 public void checkServerTrusted(X509Certificate[] certs, String authType, SSLEngine engine) in checkServerTrusted() argument
106 config.getTrustManager().checkServerTrusted(certs, authType, engine); in checkServerTrusted()
110 public void checkServerTrusted(X509Certificate[] certs, String authType) in checkServerTrusted() argument
[all …]
DNetworkSecurityTrustManager.java73 public void checkClientTrusted(X509Certificate[] certs, String authType, Socket socket) in checkClientTrusted() argument
75 mDelegate.checkClientTrusted(certs, authType, socket); in checkClientTrusted()
79 public void checkClientTrusted(X509Certificate[] certs, String authType, SSLEngine engine) in checkClientTrusted() argument
81 mDelegate.checkClientTrusted(certs, authType, engine); in checkClientTrusted()
85 public void checkServerTrusted(X509Certificate[] certs, String authType) in checkServerTrusted() argument
87 checkServerTrusted(certs, authType, (String) null); in checkServerTrusted()
91 public void checkServerTrusted(X509Certificate[] certs, String authType, Socket socket) in checkServerTrusted() argument
94 mDelegate.getTrustedChainForServer(certs, authType, socket); in checkServerTrusted()
99 public void checkServerTrusted(X509Certificate[] certs, String authType, SSLEngine engine) in checkServerTrusted() argument
102 mDelegate.getTrustedChainForServer(certs, authType, engine); in checkServerTrusted()
[all …]
DDirectoryCertificateSource.java71 Set<X509Certificate> certs = new ArraySet<X509Certificate>(); in getCertificates() local
79 certs.add(cert); in getCertificates()
83 mCertificates = certs; in getCertificates()
141 Set<X509Certificate> certs = null;
158 if (certs == null) {
159 certs = new ArraySet<X509Certificate>();
161 certs.add(cert);
164 return certs != null ? certs : Collections.<X509Certificate>emptySet();
DResourceCertificateSource.java56 Collection<? extends Certificate> certs; in ensureInitialized() local
61 certs = factory.generateCertificates(in); in ensureInitialized()
69 for (Certificate cert : certs) { in ensureInitialized()
112 Set<X509Certificate> certs = new ArraySet<X509Certificate>(anchors.size()); in findAllByIssuerAndSignature() local
114 certs.add(anchor.getTrustedCert()); in findAllByIssuerAndSignature()
116 return certs; in findAllByIssuerAndSignature()
DKeyStoreCertificateSource.java102 Set<X509Certificate> certs = new ArraySet<X509Certificate>(anchors.size()); in findAllByIssuerAndSignature() local
104 certs.add(anchor.getTrustedCert()); in findAllByIssuerAndSignature()
106 return certs; in findAllByIssuerAndSignature()
DNetworkSecurityConfig.java144 Set<X509Certificate> certs = new ArraySet<X509Certificate>(); in findAllCertificatesByIssuerAndSignature() local
146 certs.addAll(ref.findAllCertificatesByIssuerAndSignature(cert)); in findAllCertificatesByIssuerAndSignature()
148 return certs; in findAllCertificatesByIssuerAndSignature()
/frameworks/base/services/tests/servicestests/assets/PackageSignaturesTest/xml/
DREADME2 certificates and keys under the certs/ directory. To recreate the XML files run the following:
9 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8
46 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
47 certs/ec-p256_2.x509.der --key certs/ec-p256_2.pk8 --lineage certs/ec-p256-lineage-2-signers
51 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
52 certs/ec-p256_3.x509.der --key certs/ec-p256_3.pk8 --lineage certs/ec-p256-lineage-3-signers
57 --cert certs/ec-p256.x509.der --key certs/ec-p256.pk8 --next-signer --cert \
58 certs/ec-p256_3.x509.der --key certs/ec-p256_3.pk8 --v3-signing-enabled false
/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java199 Certificate[][] signerCerts = new Certificate[][]{vSigner.certs}; in verifyV4Signature()
213 nonstreamingCerts = new Certificate[][]{v3Signer.certs}; in verifyV4Signature()
216 pastSignerSigs = new Signature[v3Signer.por.certs.size()]; in verifyV4Signature()
219 v3Signer.por.certs.get(i).getEncoded()); in verifyV4Signature()
228 nonstreamingCerts = v2Signer.certs; in verifyV4Signature()
293 Certificate[][] signerCerts = new Certificate[][]{vSigner.certs}; in verifyV3Signature()
298 pastSignerSigs = new Signature[vSigner.por.certs.size()]; in verifyV3Signature()
300 pastSignerSigs[i] = new Signature(vSigner.por.certs.get(i).getEncoded()); in verifyV3Signature()
333 Certificate[][] signerCerts = vSigner.certs; in verifyV2Signature()
474 private static Signature[] convertToSignatures(Certificate[][] certs) in convertToSignatures() argument
[all …]
DApkSignatureSchemeV2Verifier.java102 return vSigner.certs; in verify()
117 return vSigner.certs; in unsafeGetCertsWithoutVerification()
187 X509Certificate[] certs = verifySigner(signer, contentDigests, certFactory); in verify() local
188 signerCerts.add(certs); in verify()
327 List<X509Certificate> certs = new ArrayList<>(); in verifySigner() local
340 certs.add(certificate); in verifySigner()
343 if (certs.isEmpty()) { in verifySigner()
346 X509Certificate mainCertificate = certs.get(0); in verifySigner()
356 return certs.toArray(new X509Certificate[certs.size()]); in verifySigner()
430 public final X509Certificate[][] certs; field in ApkSignatureSchemeV2Verifier.VerifiedSigner
[all …]
DApkSignatureSchemeV3Verifier.java342 List<X509Certificate> certs = new ArrayList<>(); in verifySigner() local
355 certs.add(certificate); in verifySigner()
358 if (certs.isEmpty()) { in verifySigner()
361 X509Certificate mainCertificate = certs.get(0); in verifySigner()
381 return verifyAdditionalAttributes(additionalAttrs, certs, certFactory); in verifySigner()
387 verifyAdditionalAttributes(ByteBuffer attrs, List<X509Certificate> certs, in verifyAdditionalAttributes() argument
389 X509Certificate[] certChain = certs.toArray(new X509Certificate[certs.size()]); in verifyAdditionalAttributes()
409 if (por.certs.size() > 0 in verifyAdditionalAttributes()
410 && !Arrays.equals(por.certs.get(por.certs.size() - 1).getEncoded(), in verifyAdditionalAttributes()
467 public final X509Certificate[] certs; field in ApkSignatureSchemeV3Verifier.VerifiedSigner
[all …]
DApkSignatureSchemeV4Verifier.java174 public final Certificate[] certs; field in ApkSignatureSchemeV4Verifier.VerifiedSigner
181 public VerifiedSigner(Certificate[] certs, byte[] apkDigest, in VerifiedSigner() argument
183 this.certs = certs; in VerifiedSigner()
DApkSigningBlockUtils.java826 List<X509Certificate> certs = new ArrayList<>(); in verifyProofOfRotationStruct() local
892 certs.add(lastCert); in verifyProofOfRotationStruct()
906 return new VerifiedProofOfRotation(certs, flagsList); in verifyProofOfRotationStruct()
915 public final List<X509Certificate> certs; field in ApkSigningBlockUtils.VerifiedProofOfRotation
918 public VerifiedProofOfRotation(List<X509Certificate> certs, List<Integer> flagsList) { in VerifiedProofOfRotation() argument
919 this.certs = certs; in VerifiedProofOfRotation()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java54 @NonNull String query, @Nullable List<List<String>> certs, in ProviderResourceEntry() argument
59 mCerts = certs; in ProviderResourceEntry()
183 List<List<String>> certs = null; in readFamily() local
187 certs = new ArrayList<>(); in readFamily()
194 certs.add(certsList); in readFamily()
199 certs.add(certsList); in readFamily()
207 certs, in readFamily()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestCertificateSource.java62 Set<X509Certificate> certs = new ArraySet<X509Certificate>(); in findAllByIssuerAndSignature() local
64 certs.add(anchor.getTrustedCert()); in findAllByIssuerAndSignature()
66 return certs; in findAllByIssuerAndSignature()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAndroidAppAsset.java185 private List<String> sortAndDeDuplicate(List<String> certs) { in sortAndDeDuplicate() argument
186 if (certs.size() <= 1) { in sortAndDeDuplicate()
187 return certs; in sortAndDeDuplicate()
189 HashSet<String> set = new HashSet<>(certs); in sortAndDeDuplicate()
DAndroidAppAssetMatcher.java42 Set<String> certs = new HashSet<String>(mQuery.getCertFingerprints()); in matches() local
44 if (certs.contains(cert)) { in matches()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java126 List<String> certs = certList.get(0); in testParseDownloadableFont_singleCerts() local
127 assertEquals(2, certs.size()); in testParseDownloadableFont_singleCerts()
128 assertEquals("123456789", certs.get(0)); in testParseDownloadableFont_singleCerts()
129 assertEquals("987654321", certs.get(1)); in testParseDownloadableFont_singleCerts()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java270 final Certificate[] certs = pkcs7.getCertificates(); in verifySignature() local
271 if (certs == null || certs.length == 0) { in verifySignature()
438 final Signature[] certs; in getInstallerChecksums() local
449 certs = new Signature[certificates.length]; in getInstallerChecksums()
451 certs[i] = new Signature(certificates[i].getEncoded()); in getInstallerChecksums()
464 certs = installer.getSigningDetails().signatures; in getInstallerChecksums()
467 if (certs == null || certs.length == 0 || certs[0] == null) { in getInstallerChecksums()
474 byte[] trustedCertBytes = certs[0].toByteArray(); in getInstallerChecksums()
480 Signature trustedCert = isTrusted(certs, trusted); in getInstallerChecksums()
/frameworks/base/keystore/java/android/security/keystore/
DAttestationUtils.java168 Certificate[] certs = keyStore.getCertificateChain(keystoreAlias); in attestDeviceIds() local
170 Arrays.copyOf(certs, certs.length, X509Certificate[].class); in attestDeviceIds()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAbstractVerifier.java101 Certificate[] certs = session.getPeerCertificates(); in verify() local
102 X509Certificate x509 = (X509Certificate) certs[0]; in verify()
108 Certificate[] certs = session.getPeerCertificates(); in verify() local
109 X509Certificate x509 = (X509Certificate) certs[0]; in verify()
/frameworks/base/identity/java/android/security/identity/
DCredstoreWritableIdentityCredential.java56 Collection<? extends Certificate> certs = null; in getCredentialKeyCertificateChain() local
59 certs = factory.generateCertificates(bais); in getCredentialKeyCertificateChain()
65 for (Certificate cert : certs) { in getCredentialKeyCertificateChain()
DCredstoreIdentityCredential.java219 Collection<? extends Certificate> certs = null; in getCredentialKeyCertificateChain() local
222 certs = factory.generateCertificates(bais); in getCredentialKeyCertificateChain()
228 for (Certificate cert : certs) { in getCredentialKeyCertificateChain()
379 Collection<? extends Certificate> certs = null; in getAuthKeysNeedingCertification() local
381 certs = factory.generateCertificates(bais); in getAuthKeysNeedingCertification()
382 if (certs.size() != 1) { in getAuthKeysNeedingCertification()
385 X509Certificate authKeyCert = (X509Certificate) certs.iterator().next(); in getAuthKeysNeedingCertification()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierPrivilegesTracker.java390 Set<String> certs = new ArraySet<>(); in updateCertsForPackage() local
394 certs.add(IccUtils.bytesToHexString(sha1).toUpperCase()); in updateCertsForPackage()
397 certs.add(IccUtils.bytesToHexString(sha256).toUpperCase()); in updateCertsForPackage()
400 mInstalledPackageCerts.put(pkg.packageName, certs); in updateCertsForPackage()
496 private boolean isPackagePrivileged(String pkgName, Set<String> certs) { in isPackagePrivileged() argument
500 for (String cert : certs) { in isPackagePrivileged()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DXmlPerfTest.java255 int certs = 0; in read() local
276 certs++; in read()
289 assertEquals(packages * 1, certs); in read()
/frameworks/base/telephony/java/android/telephony/
DUiccAccessRule.java116 public static UiccAccessRule[] decodeRulesFromCarrierConfig(@Nullable String[] certs) { in decodeRulesFromCarrierConfig() argument
117 if (certs == null) { in decodeRulesFromCarrierConfig()
121 for (String cert : certs) { in decodeRulesFromCarrierConfig()

12