PemEncoded() — netty Function Reference
Architecture documentation for the PemEncoded() function in PemPrivateKey.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e02cbddc_61f5_edfc_e533_8fa5cd528f66["PemEncoded()"] 194af198_e026_5c8c_6eb7_d6fe9fc1c1fd["PemPrivateKey"] e02cbddc_61f5_edfc_e533_8fa5cd528f66 -->|defined in| 194af198_e026_5c8c_6eb7_d6fe9fc1c1fd 2b412e17_958b_c6dd_234e_f17ff9e428c3["getEncoded()"] e02cbddc_61f5_edfc_e533_8fa5cd528f66 -->|calls| 2b412e17_958b_c6dd_234e_f17ff9e428c3 style e02cbddc_61f5_edfc_e533_8fa5cd528f66 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/PemPrivateKey.java lines 54–69
static PemEncoded toPEM(ByteBufAllocator allocator, boolean useDirect, PrivateKey key) {
// We can take a shortcut if the private key happens to be already
// PEM/PKCS#8 encoded. This is the ideal case and reason why all
// this exists. It allows the user to pass pre-encoded bytes straight
// into OpenSSL without having to do any of the extra work.
if (key instanceof PemEncoded) {
return ((PemEncoded) key).retain();
}
byte[] bytes = key.getEncoded();
if (bytes == null) {
throw new IllegalArgumentException(key.getClass().getName() + " does not support encoding");
}
return toPEM(allocator, useDirect, bytes);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does PemEncoded() do?
PemEncoded() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/PemPrivateKey.java.
Where is PemEncoded() defined?
PemEncoded() is defined in handler/src/main/java/io/netty/handler/ssl/PemPrivateKey.java at line 54.
What does PemEncoded() call?
PemEncoded() calls 1 function(s): getEncoded.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free