testAlgorithmConstraintsThrows() — netty Function Reference
Architecture documentation for the testAlgorithmConstraintsThrows() function in OpenSslEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6e901343_6b15_84b6_9520_6fc636a367d4["testAlgorithmConstraintsThrows()"] 08957e63_66e1_e2b4_c8aa_4f617c598a7d["OpenSslEngineTest"] 6e901343_6b15_84b6_9520_6fc636a367d4 -->|defined in| 08957e63_66e1_e2b4_c8aa_4f617c598a7d style 6e901343_6b15_84b6_9520_6fc636a367d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java lines 1132–1172
@MethodSource("newTestParams")
@ParameterizedTest
public void testAlgorithmConstraintsThrows(SSLEngineTestParam param) throws Exception {
SelfSignedCertificate ssc = CachedSelfSignedCertificate.getCachedCertificate();
serverSslCtx = wrapContext(param, SslContextBuilder.forServer(ssc.certificate(), ssc.privateKey())
.sslProvider(sslServerProvider())
.protocols(param.protocols())
.ciphers(param.ciphers())
.build());
final SSLEngine engine = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
final SSLParameters parameters = new SSLParameters();
parameters.setAlgorithmConstraints(new AlgorithmConstraints() {
@Override
public boolean permits(
Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters) {
return false;
}
@Override
public boolean permits(Set<CryptoPrimitive> primitives, Key key) {
return false;
}
@Override
public boolean permits(
Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) {
return false;
}
});
try {
assertThrows(IllegalArgumentException.class, new Executable() {
@Override
public void execute() throws Throwable {
engine.setSSLParameters(parameters);
}
});
} finally {
cleanupServerSslEngine(engine);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testAlgorithmConstraintsThrows() do?
testAlgorithmConstraintsThrows() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java.
Where is testAlgorithmConstraintsThrows() defined?
testAlgorithmConstraintsThrows() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java at line 1132.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free