validateSupported() — netty Function Reference
Architecture documentation for the validateSupported() function in OpenSslKeyMaterialProvider.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b6527f12_42f4_a739_b702_4731088cea91["validateSupported()"] 738f20d6_5be5_1429_78fc_40bccc7b3b90["OpenSslKeyMaterialProvider"] b6527f12_42f4_a739_b702_4731088cea91 -->|defined in| 738f20d6_5be5_1429_78fc_40bccc7b3b90 02d217fc_0044_e8f7_28eb_bd951f658c96["validateKeyMaterialSupported()"] 02d217fc_0044_e8f7_28eb_bd951f658c96 -->|calls| b6527f12_42f4_a739_b702_4731088cea91 style b6527f12_42f4_a739_b702_4731088cea91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/OpenSslKeyMaterialProvider.java lines 49–75
private static void validateSupported(PrivateKey key, String password,
boolean allowSignatureFallback) throws SSLException {
if (key == null) {
return;
}
// Skip validation for keys that don't expose encoded material
// These will be handled by the key fallback mechanism
if (key.getEncoded() == null && allowSignatureFallback) {
return;
}
long pkeyBio = 0;
long pkey = 0;
try {
pkeyBio = toBIO(UnpooledByteBufAllocator.DEFAULT, key);
pkey = SSL.parsePrivateKey(pkeyBio, password);
} catch (Exception e) {
throw new SSLException("PrivateKey type not supported " + key.getFormat(), e);
} finally {
SSL.freeBIO(pkeyBio);
if (pkey != 0) {
SSL.freePrivateKey(pkey);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does validateSupported() do?
validateSupported() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslKeyMaterialProvider.java.
Where is validateSupported() defined?
validateSupported() is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslKeyMaterialProvider.java at line 49.
What calls validateSupported()?
validateSupported() is called by 1 function(s): validateKeyMaterialSupported.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free