Searched refs:rootCert (Results 1 – 3 of 3) sorted by relevance
102 X509Certificate rootCert = generateCertificateFromEncodedBytes(encodedRootCert); in testCertificateChains() local104 X509Certificate[] validCertChain = new X509Certificate[]{testCert, rootCert}; in testCertificateChains()105 X509Certificate[] invalidCertChain = new X509Certificate[]{rootCert, testCert}; in testCertificateChains()130 X509Certificate rootCert = generateCertificateFromEncodedBytes(encodedRootCert); in testCertChainSwapOAndCN() local132 X509Certificate[] certChain = new X509Certificate[]{testCert, rootCert}; in testCertChainSwapOAndCN()134 assertThat(X509Utils.isSelfSignedCertificate(rootCert)).isTrue(); in testCertChainSwapOAndCN()
126 X509Certificate rootCert = certChain[certChain.length - 1]; in isCertChainValid() local127 return isSelfSignedCertificate(rootCert) && verifyCertChain(rootCert, certChain); in isCertChainValid()130 private static boolean verifyCertChain(X509Certificate rootCert, X509Certificate[] certChain) in verifyCertChain() argument135 Set<TrustAnchor> trustedAnchors = Set.of(new TrustAnchor(rootCert, null)); in verifyCertChain()
57 X509Certificate rootCert = certChain[certChain.length - 1]; in validateCertChain() local59 rootCert.verify(rootCert.getPublicKey()); in validateCertChain()64 Set.of(new TrustAnchor(rootCert, /* nameConstraints= */ null)); in validateCertChain()