io.netty.handler.ssl.ReferenceCountedOpenSslClientContext.class Maven / Gradle / Ivy
???? 2 ? 9io/netty/handler/ssl/ReferenceCountedOpenSslClientContext 3io/netty/handler/ssl/ReferenceCountedOpenSslContext )ReferenceCountedOpenSslClientContext.java ]io/netty/handler/ssl/ReferenceCountedOpenSslClientContext$OpenSslCertificateRequestedCallback #OpenSslCertificateRequestedCallback \io/netty/handler/ssl/ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback "ExtendedTrustManagerVerifyCallback Tio/netty/handler/ssl/ReferenceCountedOpenSslClientContext$TrustManagerVerifyCallback TrustManagerVerifyCallback Uio/netty/handler/ssl/ReferenceCountedOpenSslClientContext$OpenSslClientSessionContext OpenSslClientSessionContext logger /Lio/netty/util/internal/logging/InternalLogger; sessionContext ,Lio/netty/handler/ssl/OpenSslSessionContext; ?([Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;[Ljava/lang/String;JJZ)V javax/net/ssl/SSLException io/netty/handler/ssl/ClientAuth NONE !Lio/netty/handler/ssl/ClientAuth; ?(Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJI[Ljava/security/cert/Certificate;Lio/netty/handler/ssl/ClientAuth;[Ljava/lang/String;ZZZ)V
! ctx J # $ % engineMap 'Lio/netty/handler/ssl/OpenSslEngineMap; ' ( ) newSessionContextE(Lio/netty/handler/ssl/ReferenceCountedOpenSslContext;JLio/netty/handler/ssl/OpenSslEngineMap;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;)Lio/netty/handler/ssl/OpenSslSessionContext; + ,
- / release ()Z 1 2
3 %[Ljava/security/cert/X509Certificate; 5 !javax/net/ssl/TrustManagerFactory 7 java/security/PrivateKey 9 java/lang/String ; javax/net/ssl/KeyManagerFactory = java/lang/Iterable ? &io/netty/handler/ssl/CipherSuiteFilter A .io/netty/handler/ssl/ApplicationProtocolConfig C [Ljava/lang/String; E java/lang/Throwable G this ;Lio/netty/handler/ssl/ReferenceCountedOpenSslClientContext; trustCertCollection trustManagerFactory #Ljavax/net/ssl/TrustManagerFactory; keyCertChain key Ljava/security/PrivateKey; keyPassword Ljava/lang/String; keyManagerFactory !Ljavax/net/ssl/KeyManagerFactory; ciphers (Ljava/lang/Iterable; Ljava/lang/Iterable; cipherFilter (Lio/netty/handler/ssl/CipherSuiteFilter; apn 0Lio/netty/handler/ssl/ApplicationProtocolConfig; protocols sessionCacheSize sessionTimeout
enableOcsp Z success keyMaterialManager 2()Lio/netty/handler/ssl/OpenSslKeyMaterialManager; .()Lio/netty/handler/ssl/OpenSslSessionContext; java/lang/Exception e "java/lang/IllegalArgumentException g AEither both keyCertChain and key needs to be null or none of them i (Ljava/lang/String;)V k
h l io/netty/handler/ssl/OpenSsl n useKeyManagerFactory p 2
o q KeyManagerFactory not supported s setKeyMaterial U(J[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;)V u v
w buildKeyManagerFactory ?([Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;)Ljavax/net/ssl/KeyManagerFactory; y z
{ getKeyManagers ()[Ljavax/net/ssl/KeyManager; } ~
> chooseX509KeyManager ;([Ljavax/net/ssl/KeyManager;)Ljavax/net/ssl/X509KeyManager; ? ?
? useExtendedKeyManager !(Ljavax/net/ssl/X509KeyManager;)Z ? ?
? 6io/netty/handler/ssl/OpenSslExtendedKeyMaterialManager ? $javax/net/ssl/X509ExtendedKeyManager ? ;(Ljavax/net/ssl/X509ExtendedKeyManager;Ljava/lang/String;)V ?
? ? javax/net/ssl/X509KeyManager ? .io/netty/handler/ssl/OpenSslKeyMaterialManager ? 3(Ljavax/net/ssl/X509KeyManager;Ljava/lang/String;)V ?
? ? Z(Lio/netty/handler/ssl/OpenSslEngineMap;Lio/netty/handler/ssl/OpenSslKeyMaterialManager;)V ?
? %io/netty/internal/tcnative/SSLContext ? setCertRequestedCallback =(JLio/netty/internal/tcnative/CertificateRequestedCallback;)V ? ?
? ? !failed to set certificate and key ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
? setVerify (JII)V ? ?
? ? buildTrustManagerFactory m([Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;)Ljavax/net/ssl/TrustManagerFactory; ? ?
? getDefaultAlgorithm ()Ljava/lang/String; ? ?
8 ? getInstance 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; ? ?
8 ? java/security/KeyStore ? init (Ljava/security/KeyStore;)V ? ?
8 ? getTrustManagers ()[Ljavax/net/ssl/TrustManager; ? ?
8 ? chooseTrustManager ?([Ljavax/net/ssl/TrustManager;)Ljavax/net/ssl/X509TrustManager; ? ?
? useExtendedTrustManager #(Ljavax/net/ssl/X509TrustManager;)Z ? ?
? &javax/net/ssl/X509ExtendedTrustManager ? R(Lio/netty/handler/ssl/OpenSslEngineMap;Ljavax/net/ssl/X509ExtendedTrustManager;)V ?
? setCertVerifyCallback 4(JLio/netty/internal/tcnative/CertificateVerifier;)V ? ?
? ? javax/net/ssl/X509TrustManager ? J(Lio/netty/handler/ssl/OpenSslEngineMap;Ljavax/net/ssl/X509TrustManager;)V ?
? unable to setup trustmanager ? 8(Lio/netty/handler/ssl/ReferenceCountedOpenSslContext;)V ?
?
keyManager Ljavax/net/ssl/X509KeyManager; materialManager 0Lio/netty/handler/ssl/OpenSslKeyMaterialManager; e Ljava/lang/Exception; manager Ljavax/net/ssl/X509TrustManager; thiz 5Lio/netty/handler/ssl/ReferenceCountedOpenSslContext; #()Ljavax/net/ssl/SSLSessionContext; d
?
access$000 1()Lio/netty/util/internal/logging/InternalLogger; ? ()V 4io/netty/util/internal/logging/InternalLoggerFactory ? B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; ? ?
? ? Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable
Exceptions SignatureS([Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;[Ljava/lang/String;JJZ)V
SourceFile InnerClasses 1 ? ? U*
-?
? "6***? &*? *+,-? .? 06? *? 4W? :? *? 4W?? 8 E E G E ? ? U I J U K 5 U L M U N 5 U O P U Q R U S T U U W U X Y U Z [ U \ E
U ] $ U ^ $
U _ ` 9 a ` ? U U V ? &