PrivateKeyMethod Class — netty Architecture
Architecture documentation for the PrivateKeyMethod class in ReferenceCountedOpenSslContext.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5c12800a_2312_5ea6_993d_42618071a05b["PrivateKeyMethod"] ec821021_8733_8627_194f_15d27e6d1f67["ReferenceCountedOpenSslContext.java"] 5c12800a_2312_5ea6_993d_42618071a05b -->|defined in| ec821021_8733_8627_194f_15d27e6d1f67 5bc9d740_9044_981a_f1f4_824ebd694e43["PrivateKeyMethod()"] 5c12800a_2312_5ea6_993d_42618071a05b -->|method| 5bc9d740_9044_981a_f1f4_824ebd694e43 f145c092_3af0_74e2_2990_17aae2766c9d["sign()"] 5c12800a_2312_5ea6_993d_42618071a05b -->|method| f145c092_3af0_74e2_2990_17aae2766c9d a71aa7cd_9627_92c9_843a_16ba2fd0ec85["decrypt()"] 5c12800a_2312_5ea6_993d_42618071a05b -->|method| a71aa7cd_9627_92c9_843a_16ba2fd0ec85
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java lines 1116–1146
private static final class PrivateKeyMethod implements SSLPrivateKeyMethod {
private final Map<Long, ReferenceCountedOpenSslEngine> engines;
private final OpenSslPrivateKeyMethod keyMethod;
PrivateKeyMethod(Map<Long, ReferenceCountedOpenSslEngine> engines, OpenSslPrivateKeyMethod keyMethod) {
this.engines = engines;
this.keyMethod = keyMethod;
}
@Override
public byte[] sign(long ssl, int signatureAlgorithm, byte[] digest) throws Exception {
ReferenceCountedOpenSslEngine engine = retrieveEngine(engines, ssl);
try {
return verifyResult(keyMethod.sign(engine, signatureAlgorithm, digest));
} catch (Exception e) {
engine.initHandshakeException(e);
throw e;
}
}
@Override
public byte[] decrypt(long ssl, byte[] input) throws Exception {
ReferenceCountedOpenSslEngine engine = retrieveEngine(engines, ssl);
try {
return verifyResult(keyMethod.decrypt(engine, input));
} catch (Exception e) {
engine.initHandshakeException(e);
throw e;
}
}
}
Source
Frequently Asked Questions
What is the PrivateKeyMethod class?
PrivateKeyMethod is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java.
Where is PrivateKeyMethod defined?
PrivateKeyMethod is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java at line 1116.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free