createCertificateWithOtherFields() — netty Function Reference
Architecture documentation for the createCertificateWithOtherFields() function in CertificateBuilderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 359411c4_2f83_6006_1979_fd4d240452a7["createCertificateWithOtherFields()"] 8c85a9d3_f3ae_f481_1984_99bd24f9c654["CertificateBuilderTest"] 359411c4_2f83_6006_1979_fd4d240452a7 -->|defined in| 8c85a9d3_f3ae_f481_1984_99bd24f9c654 style 359411c4_2f83_6006_1979_fd4d240452a7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java lines 347–365
@Test
void createCertificateWithOtherFields() throws Exception {
X509Bundle root = BASE.copy()
.setIsCertificateAuthority(true)
.setKeyUsage(true, KeyUsage.digitalSignature, KeyUsage.keyCertSign)
.setPathLengthConstraint(OptionalInt.of(42))
.serial(BigInteger.TEN)
.buildSelfSigned();
X509Certificate cert = root.getCertificate();
assertThat(cert.getBasicConstraints()).isEqualTo(42);
assertThat(cert.getSerialNumber()).isEqualTo(10);
assertEquals(3, cert.getVersion());
assertFalse(cert.hasUnsupportedCriticalExtension());
assertThat(cert.getKeyUsage()).isEqualTo(
new boolean[] {true, false, false, false, false, true, false, false, false});
cert.checkValidity();
assertThat(NOW.minus(1, DAYS).truncatedTo(SECONDS).toEpochMilli()).isEqualTo(cert.getNotBefore().getTime());
assertThat(NOW.plus(1, DAYS).truncatedTo(SECONDS).toEpochMilli()).isEqualTo(cert.getNotAfter().getTime());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does createCertificateWithOtherFields() do?
createCertificateWithOtherFields() is a function in the netty codebase, defined in pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java.
Where is createCertificateWithOtherFields() defined?
createCertificateWithOtherFields() is defined in pkitesting/src/test/java/io/netty/pkitesting/CertificateBuilderTest.java at line 347.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free