Home
last modified time | relevance | path

Searched refs:certificates (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/security/
DAttestationVerificationSelfTrustedVerifierForTesting.java138 List<X509Certificate> certificates = new ArrayList<>(); in verifyAttestation() local
142 certificates.add((X509Certificate) mCertificateFactory.generateCertificate(bis)); in verifyAttestation()
151 && checkLeafChallenge(requirements, certificates) in verifyAttestation()
152 && verifyCertificateChain(certificates)) { in verifyAttestation()
159 private boolean verifyCertificateChain(List<X509Certificate> certificates) { in verifyCertificateChain() argument
160 if (certificates.size() < 2) { in verifyCertificateChain()
166 CertPath certificatePath = mCertificateFactory.generateCertPath(certificates); in verifyCertificateChain()
196 private boolean checkLeafChallenge(Bundle requirements, List<X509Certificate> certificates) { in checkLeafChallenge() argument
200 challenge = getChallengeFromCert(certificates.get(0)); in checkLeafChallenge()
DAttestationVerificationPeerDeviceVerifier.java255 List<X509Certificate> certificates = new ArrayList<>(); in getCertificates() local
258 certificates.add((X509Certificate) mCertificateFactory.generateCertificate(bis)); in getCertificates()
261 return certificates; in getCertificates()
293 private void validateCertificateChain(List<X509Certificate> certificates) in validateCertificateChain() argument
296 if (certificates.size() < 2) { in validateCertificateChain()
301 CertPath certificatePath = mCertificateFactory.generateCertPath(certificates); in validateCertificateChain()
/frameworks/base/core/java/android/security/keystore/recovery/
DTrustedRootCertificates.java164 ArrayMap<String, X509Certificate> certificates = in constructRootCertificateMap() local
166 certificates.put( in constructRootCertificateMap()
169 return certificates; in constructRootCertificateMap()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestCertificateSource.java30 public TestCertificateSource(Set<X509Certificate> certificates) { in TestCertificateSource() argument
31 mCertificates = certificates; in TestCertificateSource()
32 for (X509Certificate cert : certificates) { in TestCertificateSource()
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DTrustedRootCertificatesTest.java40 Map<String, X509Certificate> certificates = getRootCertificates(); in getRootCertificates_listsGoogleCloudVaultV1Certificate() local
42 assertTrue(certificates.containsKey(GOOGLE_CLOUD_KEY_VAULT_SERVICE_V1_ALIAS)); in getRootCertificates_listsGoogleCloudVaultV1Certificate()
/frameworks/base/core/java/android/security/net/config/
DKeyStoreCertificateSource.java58 Set<X509Certificate> certificates = new ArraySet<>(mKeyStore.size()); in ensureInitialized() local
63 certificates.add(cert); in ensureInitialized()
68 mCertificates = certificates; in ensureInitialized()
DResourceCertificateSource.java55 Set<X509Certificate> certificates = new ArraySet<X509Certificate>(); in ensureInitialized() local
70 certificates.add((X509Certificate) cert); in ensureInitialized()
73 mCertificates = certificates; in ensureInitialized()
/frameworks/base/core/java/android/provider/
DFontRequest.java70 @NonNull String query, @NonNull List<List<byte[]>> certificates) { in FontRequest() argument
74 mCertificates = Preconditions.checkNotNull(certificates); in FontRequest()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java290 ArrayList<Certificate> certificates = new ArrayList<>(signerInfos.length); in verifySignature() local
297 certificates.addAll(chain); in verifySignature()
300 return certificates.toArray(new Certificate[certificates.size()]); in verifySignature()
455 final Certificate[] certificates = verifySignature(digests, in getInstallerChecksums() local
457 if (certificates == null || certificates.length == 0) { in getInstallerChecksums()
462 certs = new Signature[certificates.length]; in getInstallerChecksums()
463 for (int i = 0, size = certificates.length; i < size; i++) { in getInstallerChecksums()
464 certs[i] = new Signature(certificates[i].getEncoded()); in getInstallerChecksums()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtils.java332 List<X509Certificate> certificates = (List<X509Certificate>) certPath.getCertificates(); in validateCertPath() local
333 X509Certificate leafCert = certificates.get(0); in validateCertPath()
335 certificates.subList(/*fromIndex=*/ 1, certificates.size()); in validateCertPath()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java95 private final Hashtable<String, Certificate[]> certificates = field in StrictJarVerifier
232 Certificate[] certChain = certificates.get(signatureFile); in initEntry()
383 certificates.put(signatureFile, signerCertChain); in verifyCertificate()
499 return certificates.size() > 0; in isSignedJar()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java337 ByteBuffer certificates = getLengthPrefixedSlice(signedData); in verifySigner() local
340 while (certificates.hasRemaining()) { in verifySigner()
342 byte[] encodedCert = readLengthPrefixedByteArray(certificates); in verifySigner()
DApkSignatureSchemeV3Verifier.java396 ByteBuffer certificates = getLengthPrefixedSlice(signedData); in verifySigner() local
399 while (certificates.hasRemaining()) { in verifySigner()
401 byte[] encodedCert = readLengthPrefixedByteArray(certificates); in verifySigner()
/frameworks/base/tools/aapt2/
DApkInfo.proto247 repeated string certificates = 4; field
260 repeated string certificates = 3; field
304 repeated string certificates = 5; field
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/
DAndroidKeystoreAttestationVerificationAttributesTest.java287 Collection<? extends Certificate> certificates = mFactory.generateCertificates( in generateCertificates() local
292 for (Certificate cert : certificates) { in generateCertificates()
/frameworks/base/core/java/android/os/
DRecoverySystem.java331 X509Certificate[] certificates = block.getCertificates(); in verifyPackage() local
332 if (certificates == null || certificates.length == 0) { in verifyPackage()
335 X509Certificate cert = certificates[0]; in verifyPackage()
/frameworks/base/services/tests/PackageManagerServiceTests/server/assets/PackageSignaturesTest/xml/
DREADME2 certificates and keys under the certs/ directory. To recreate the XML files run the following:
/frameworks/proto_logging/stats/atoms/wifi/
Dwifi_extension_atoms.proto552 // Require valid OCSP stapling response for all not-trusted certificates
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/proto_logging/stats/
Datoms.proto22726 // A digest of the root key that certified the provisioned certificates
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt44444 method public java.security.Certificate[] certificates();
/frameworks/base/config/
Dboot-image-profile.txt31946 HSPLsun/security/provider/certpath/PKIX$ValidatorParams;->certificates()Ljava/util/List;