KeyPairGenerator() — netty Function Reference
Architecture documentation for the KeyPairGenerator() function in Algorithms.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5bb370b9_b80c_b2d6_54a5_8a4cd40744c8["KeyPairGenerator()"] dcf50d07_6753_86d5_e2c9_9f306827a5a9["Algorithms"] 5bb370b9_b80c_b2d6_54a5_8a4cd40744c8 -->|defined in| dcf50d07_6753_86d5_e2c9_9f306827a5a9 style 5bb370b9_b80c_b2d6_54a5_8a4cd40744c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
pkitesting/src/main/java/io/netty/pkitesting/Algorithms.java lines 86–115
static KeyPairGenerator keyPairGenerator(String keyType, AlgorithmParameterSpec spec,
SecureRandom rng, Provider provider) throws GeneralSecurityException {
try {
KeyPairGenerator keyGen;
if (provider == null) {
keyGen = KeyPairGenerator.getInstance(keyType);
} else {
keyGen = KeyPairGenerator.getInstance(keyType, provider);
}
try {
keyGen.initialize(spec, rng);
} catch (UnsupportedOperationException ignore) {
// The key generators for some algorithms, in some providers, don't support key gen initialization.
}
return keyGen;
} catch (GeneralSecurityException e) {
if (provider != null) {
// Don't fall back to BouncyCastle if we were explicitly told to use a specific provider.
throw e;
}
try {
KeyPairGenerator keyGen = KeyPairGenerator.getInstance(keyType, bouncyCastle());
keyGen.initialize(spec, rng);
return keyGen;
} catch (GeneralSecurityException ex) {
e.addSuppressed(ex);
}
throw e;
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does KeyPairGenerator() do?
KeyPairGenerator() is a function in the netty codebase, defined in pkitesting/src/main/java/io/netty/pkitesting/Algorithms.java.
Where is KeyPairGenerator() defined?
KeyPairGenerator() is defined in pkitesting/src/main/java/io/netty/pkitesting/Algorithms.java at line 86.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free