CachedSelfSignedCertificate Class — netty Architecture
Architecture documentation for the CachedSelfSignedCertificate class in CachedSelfSignedCertificate.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f0e72c5e_b549_20f5_d7c8_71a92e1319b3["CachedSelfSignedCertificate"] 27032b78_ff00_45d1_2f0b_1ff4bf24607d["CachedSelfSignedCertificate.java"] f0e72c5e_b549_20f5_d7c8_71a92e1319b3 -->|defined in| 27032b78_ff00_45d1_2f0b_1ff4bf24607d 8bc5b323_e528_c919_a36b_8122aceb6bed["CachedSelfSignedCertificate()"] f0e72c5e_b549_20f5_d7c8_71a92e1319b3 -->|method| 8bc5b323_e528_c919_a36b_8122aceb6bed 2133454e_dd93_3431_5259_4297174ec151["SelfSignedCertificate()"] f0e72c5e_b549_20f5_d7c8_71a92e1319b3 -->|method| 2133454e_dd93_3431_5259_4297174ec151
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/util/CachedSelfSignedCertificate.java lines 20–49
public final class CachedSelfSignedCertificate {
private CachedSelfSignedCertificate() {
}
/**
* Obtain a lazily-created, shared {@link SelfSignedCertificate} instance.
* @return A shared {@link SelfSignedCertificate}.
*/
public static SelfSignedCertificate getCachedCertificate() {
Object instance = LazyDefaultInstance.INSTANCE;
if (instance instanceof SelfSignedCertificate) {
return (SelfSignedCertificate) instance;
}
Throwable throwable = (Throwable) instance;
throw new IllegalStateException("Could not create default self-signed certificate instance", throwable);
}
private static final class LazyDefaultInstance {
public static final Object INSTANCE = createInstance();
private static Object createInstance() {
try {
return new SelfSignedCertificate();
} catch (CertificateException e) {
return e;
}
}
}
}
Source
Frequently Asked Questions
What is the CachedSelfSignedCertificate class?
CachedSelfSignedCertificate is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/util/CachedSelfSignedCertificate.java.
Where is CachedSelfSignedCertificate defined?
CachedSelfSignedCertificate is defined in handler/src/test/java/io/netty/handler/ssl/util/CachedSelfSignedCertificate.java at line 20.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free