revokedCertificatesWithCrlMustFailValidation() — netty Function Reference
Architecture documentation for the revokedCertificatesWithCrlMustFailValidation() function in CertificateBuilderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e014f77f_e349_1057_0161_3d332efe469c["revokedCertificatesWithCrlMustFailValidation()"] 8c85a9d3_f3ae_f481_1984_99bd24f9c654["CertificateBuilderTest"] e014f77f_e349_1057_0161_3d332efe469c -->|defined in| 8c85a9d3_f3ae_f481_1984_99bd24f9c654 style e014f77f_e349_1057_0161_3d332efe469c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java lines 388–410
@ParameterizedTest
@MethodSource("providers")
void revokedCertificatesWithCrlMustFailValidation(Provider provider) throws Exception {
X509Bundle root = BASE.copy()
.setIsCertificateAuthority(true)
.setKeyUsage(true, KeyUsage.digitalSignature, KeyUsage.keyCertSign, KeyUsage.cRLSign)
.buildSelfSigned();
RevocationServer server = RevocationServer.getInstance();
server.register(root, provider);
X509Bundle cert = BASE.copy()
.subject("CN=leaf.netty.io")
.addCrlDistributionPoint(server.getCrlUri(root))
.addExtendedKeyUsageClientAuth()
.buildIssuedBy(root);
server.revoke(cert, NOW);
X509TrustManager tm = getX509TrustManager(root);
// Assert that this does not throw:
CertificateException ce = assertThrows(CertificateException.class,
() -> tm.checkClientTrusted(cert.getCertificatePath(), "EC"));
assertThat(ce).hasMessageContaining("Certificate has been revoked");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does revokedCertificatesWithCrlMustFailValidation() do?
revokedCertificatesWithCrlMustFailValidation() is a function in the netty codebase, defined in pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java.
Where is revokedCertificatesWithCrlMustFailValidation() defined?
revokedCertificatesWithCrlMustFailValidation() is defined in pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java at line 388.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free