3131import io .netty .channel .DefaultChannelPromise ;
3232import io .netty .handler .ssl .ApplicationProtocolConfig ;
3333import io .netty .handler .ssl .ApplicationProtocolConfig .SelectorFailureBehavior ;
34- import io .netty .handler .ssl .CipherSuiteFilter ;
35- import io .netty .handler .ssl .ClientAuth ;
3634import io .netty .handler .ssl .JdkAlpnApplicationProtocolNegotiator ;
3735import io .netty .handler .ssl .JdkApplicationProtocolNegotiator ;
38- import io .netty .handler .ssl .SslContext ;
39- import io .netty .handler .ssl .SslContextOption ;
40- import io .netty .handler .ssl .SslProvider ;
4136import io .netty .util .concurrent .GlobalEventExecutor ;
4237import io .netty .util .internal .logging .InternalLoggerFactory ;
4338import io .netty .util .internal .logging .JdkLoggerFactory ;
44- import java .security .PrivateKey ;
45- import java .security .Provider ;
46- import java .security .SecureRandom ;
47- import java .security .cert .X509Certificate ;
48- import java .util .Map ;
49- import javax .net .ssl .KeyManagerFactory ;
5039import javax .net .ssl .SSLEngine ;
51- import javax .net .ssl .SSLException ;
52- import javax .net .ssl .TrustManagerFactory ;
5340
5441/**
5542 * This substitution avoid having loggers added to the build
@@ -65,55 +52,6 @@ private static InternalLoggerFactory newDefaultFactory(String name) {
6552
6653// SSL
6754// This whole section is mostly about removing static analysis references to openssl/tcnative
68-
69- @ TargetClass (className = "io.netty.handler.ssl.JdkSslServerContext" )
70- final class Target_io_netty_handler_ssl_JdkSslServerContext {
71-
72- @ Alias
73- Target_io_netty_handler_ssl_JdkSslServerContext (
74- Provider provider ,
75- X509Certificate [] trustCertCollection ,
76- TrustManagerFactory trustManagerFactory ,
77- X509Certificate [] keyCertChain ,
78- PrivateKey key ,
79- String keyPassword ,
80- KeyManagerFactory keyManagerFactory ,
81- Iterable <String > ciphers ,
82- CipherSuiteFilter cipherFilter ,
83- ApplicationProtocolConfig apn ,
84- long sessionCacheSize ,
85- long sessionTimeout ,
86- ClientAuth clientAuth ,
87- String [] protocols ,
88- boolean startTls ,
89- SecureRandom secureRandom ,
90- String keyStore )
91- throws SSLException {}
92- }
93-
94- @ TargetClass (className = "io.netty.handler.ssl.JdkSslClientContext" )
95- final class Target_io_netty_handler_ssl_JdkSslClientContext {
96-
97- @ Alias
98- Target_io_netty_handler_ssl_JdkSslClientContext (
99- Provider sslContextProvider ,
100- X509Certificate [] trustCertCollection ,
101- TrustManagerFactory trustManagerFactory ,
102- X509Certificate [] keyCertChain ,
103- PrivateKey key ,
104- String keyPassword ,
105- KeyManagerFactory keyManagerFactory ,
106- Iterable <String > ciphers ,
107- CipherSuiteFilter cipherFilter ,
108- ApplicationProtocolConfig apn ,
109- String [] protocols ,
110- long sessionCacheSize ,
111- long sessionTimeout ,
112- SecureRandom secureRandom ,
113- String keyStoreType )
114- throws SSLException {}
115- }
116-
11755@ TargetClass (className = "io.netty.handler.ssl.SslHandler$SslEngineType" )
11856final class Target_io_netty_handler_ssl_SslHandler$SslEngineType {
11957
@@ -196,99 +134,6 @@ final class Target_io_netty_handler_ssl_JdkAlpnSslEngine {
196134 final boolean isServer ) {}
197135}
198136
199- @ TargetClass (className = "io.netty.handler.ssl.SslContext" )
200- final class Target_io_netty_handler_ssl_SslContext {
201-
202- @ Substitute
203- static SslContext newServerContextInternal (
204- SslProvider provider ,
205- Provider sslContextProvider ,
206- X509Certificate [] trustCertCollection ,
207- TrustManagerFactory trustManagerFactory ,
208- X509Certificate [] keyCertChain ,
209- PrivateKey key ,
210- String keyPassword ,
211- KeyManagerFactory keyManagerFactory ,
212- Iterable <String > ciphers ,
213- CipherSuiteFilter cipherFilter ,
214- ApplicationProtocolConfig apn ,
215- long sessionCacheSize ,
216- long sessionTimeout ,
217- ClientAuth clientAuth ,
218- String [] protocols ,
219- boolean startTls ,
220- boolean enableOcsp ,
221- SecureRandom secureRandom ,
222- String keyStoreType ,
223- Map .Entry <SslContextOption <?>, Object >... ctxOptions )
224- throws SSLException {
225-
226- if (enableOcsp ) {
227- throw new IllegalArgumentException ("OCSP is not supported with this SslProvider: " + provider );
228- }
229- return (SslContext ) (Object ) new Target_io_netty_handler_ssl_JdkSslServerContext (
230- sslContextProvider ,
231- trustCertCollection ,
232- trustManagerFactory ,
233- keyCertChain ,
234- key ,
235- keyPassword ,
236- keyManagerFactory ,
237- ciphers ,
238- cipherFilter ,
239- apn ,
240- sessionCacheSize ,
241- sessionTimeout ,
242- clientAuth ,
243- protocols ,
244- startTls ,
245- secureRandom ,
246- keyStoreType );
247- }
248-
249- @ Substitute
250- static SslContext newClientContextInternal (
251- SslProvider provider ,
252- Provider sslContextProvider ,
253- X509Certificate [] trustCert ,
254- TrustManagerFactory trustManagerFactory ,
255- X509Certificate [] keyCertChain ,
256- PrivateKey key ,
257- String keyPassword ,
258- KeyManagerFactory keyManagerFactory ,
259- Iterable <String > ciphers ,
260- CipherSuiteFilter cipherFilter ,
261- ApplicationProtocolConfig apn ,
262- String [] protocols ,
263- long sessionCacheSize ,
264- long sessionTimeout ,
265- boolean enableOcsp ,
266- SecureRandom secureRandom ,
267- String keyStoreType ,
268- Map .Entry <SslContextOption <?>, Object >... options )
269- throws SSLException {
270- if (enableOcsp ) {
271- throw new IllegalArgumentException ("OCSP is not supported with this SslProvider: " + provider );
272- }
273- return (SslContext ) (Object ) new Target_io_netty_handler_ssl_JdkSslClientContext (
274- sslContextProvider ,
275- trustCert ,
276- trustManagerFactory ,
277- keyCertChain ,
278- key ,
279- keyPassword ,
280- keyManagerFactory ,
281- ciphers ,
282- cipherFilter ,
283- apn ,
284- protocols ,
285- sessionCacheSize ,
286- sessionTimeout ,
287- secureRandom ,
288- keyStoreType );
289- }
290- }
291-
292137@ TargetClass (className = "io.netty.handler.ssl.JdkDefaultApplicationProtocolNegotiator" )
293138final class Target_io_netty_handler_ssl_JdkDefaultApplicationProtocolNegotiator {
294139
0 commit comments