testGenerate() — netty Function Reference
Architecture documentation for the testGenerate() function in OpenJdkSelfSignedCertGeneratorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5ab5e08e_214b_c5c9_588c_1060970d66a5["testGenerate()"] 29ee5c22_63b7_abaf_71fe_02fc08361655["OpenJdkSelfSignedCertGeneratorTest"] 5ab5e08e_214b_c5c9_588c_1060970d66a5 -->|defined in| 29ee5c22_63b7_abaf_71fe_02fc08361655 style 5ab5e08e_214b_c5c9_588c_1060970d66a5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGeneratorTest.java lines 33–46
@Test
@EnabledOnJre({ JRE.JAVA_8, JRE.JAVA_9, JRE.JAVA_10, JRE.JAVA_11 })
public void testGenerate() throws Exception {
SecureRandom random = new SecureRandom();
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
keyGen.initialize(2048, random);
KeyPair keypair = keyGen.generateKeyPair();
String[] generated = OpenJdkSelfSignedCertGenerator.generate("netty.io", keypair, random,
new Date(), new Date(253402300799000L), "RSA");
assertEquals(2, generated.length);
assertNotEquals(0, generated[0].length());
assertNotEquals(0, generated[1].length());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGenerate() do?
testGenerate() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGeneratorTest.java.
Where is testGenerate() defined?
testGenerate() is defined in handler/src/test/java/io/netty/handler/ssl/util/OpenJdkSelfSignedCertGeneratorTest.java at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free