Home
last modified time | relevance | path

Searched refs:rootCert (Results 1 – 3 of 3) sorted by relevance

/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DX509UtilsTest.java102 X509Certificate rootCert = generateCertificateFromEncodedBytes(encodedRootCert); in testCertificateChains() local
104 X509Certificate[] validCertChain = new X509Certificate[]{testCert, rootCert}; in testCertificateChains()
105 X509Certificate[] invalidCertChain = new X509Certificate[]{rootCert, testCert}; in testCertificateChains()
130 X509Certificate rootCert = generateCertificateFromEncodedBytes(encodedRootCert); in testCertChainSwapOAndCN() local
132 X509Certificate[] certChain = new X509Certificate[]{testCert, rootCert}; in testCertChainSwapOAndCN()
134 assertThat(X509Utils.isSelfSignedCertificate(rootCert)).isTrue(); in testCertChainSwapOAndCN()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/
DX509Utils.java126 X509Certificate rootCert = certChain[certChain.length - 1]; in isCertChainValid() local
127 return isSelfSignedCertificate(rootCert) && verifyCertChain(rootCert, certChain); in isCertChainValid()
130 private static boolean verifyCertChain(X509Certificate rootCert, X509Certificate[] certChain) in verifyCertChain() argument
135 Set<TrustAnchor> trustedAnchors = Set.of(new TrustAnchor(rootCert, null)); in verifyCertChain()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/vm_attestation/util/
DX509Utils.java57 X509Certificate rootCert = certChain[certChain.length - 1]; in validateCertChain() local
59 rootCert.verify(rootCert.getPublicKey()); in validateCertChain()
64 Set.of(new TrustAnchor(rootCert, /* nameConstraints= */ null)); in validateCertChain()