com.groupbyinc.flux.common.http.nio.conn.ssl.SSLLayeringStrategy.class Maven / Gradle / Ivy
???? 2 ? @com/groupbyinc/flux/common/http/nio/conn/ssl/SSLLayeringStrategy java/lang/Object @com/groupbyinc/flux/common/http/nio/conn/scheme/LayeringStrategy SSLLayeringStrategy.java Ljava/lang/Deprecated; Bcom/groupbyinc/flux/common/http/nio/conn/ssl/SSLLayeringStrategy$1 TLS Ljava/lang/String; SSL SSLV2 SSLv2
sslContext Ljavax/net/ssl/SSLContext; hostnameVerifier ?Lcom/groupbyinc/flux/common/http/conn/ssl/X509HostnameVerifier; getDefaultStrategy D()Lcom/groupbyinc/flux/common/http/nio/conn/ssl/SSLLayeringStrategy; 4com/groupbyinc/flux/common/http/conn/ssl/SSLContexts
createDefault ()Ljavax/net/ssl/SSLContext;
(Ljavax/net/ssl/SSLContext;)V
! getSystemDefaultStrategy createSystemDefault $
% createSSLContext ?(Ljava/lang/String;Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;Ljava/security/SecureRandom;Lcom/groupbyinc/flux/common/http/conn/ssl/TrustStrategy;)Ljavax/net/ssl/SSLContext; &java/security/NoSuchAlgorithmException ) java/security/KeyStoreException + 'java/security/UnrecoverableKeyException - $java/security/KeyManagementException / java/lang/String 1 javax/net/ssl/KeyManagerFactory 3 getDefaultAlgorithm ()Ljava/lang/String; 5 6
4 7 getInstance 5(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory; 9 :
4 ; toCharArray ()[C = >
2 ? java/security/KeyStore A java/security/SecureRandom C 6com/groupbyinc/flux/common/http/conn/ssl/TrustStrategy E [C G init (Ljava/security/KeyStore;[C)V I J
4 K getKeyManagers ()[Ljavax/net/ssl/KeyManager; M N
4 O !javax/net/ssl/TrustManagerFactory Q
R 7 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; 9 T
R U (Ljava/security/KeyStore;)V I W
R X getTrustManagers ()[Ljavax/net/ssl/TrustManager; Z [
R \ [Ljavax/net/ssl/KeyManager; ^ [Ljavax/net/ssl/TrustManager; ` javax/net/ssl/X509TrustManager b Bcom/groupbyinc/flux/common/http/nio/conn/ssl/TrustManagerDecorator d [(Ljavax/net/ssl/X509TrustManager;Lcom/groupbyinc/flux/common/http/conn/ssl/TrustStrategy;)V f
e g javax/net/ssl/SSLContext i .(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; 9 k
j l W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V I n
j o tm Ljavax/net/ssl/TrustManager; i I algorithm keystore Ljava/security/KeyStore; keystorePassword
truststore random Ljava/security/SecureRandom;
trustStrategy 8Lcom/groupbyinc/flux/common/http/conn/ssl/TrustStrategy; algo kmfactory !Ljavax/net/ssl/KeyManagerFactory; keymanagers tmfactory #Ljavax/net/ssl/TrustManagerFactory;
trustmanagers
sslcontext ?(Ljava/lang/String;Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;Ljava/security/SecureRandom;Lcom/groupbyinc/flux/common/http/conn/ssl/X509HostnameVerifier;)V ' (
? \(Ljavax/net/ssl/SSLContext;Lcom/groupbyinc/flux/common/http/conn/ssl/X509HostnameVerifier;)V ?
? this BLcom/groupbyinc/flux/common/http/nio/conn/ssl/SSLLayeringStrategy; ?(Ljava/lang/String;Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;Ljava/security/SecureRandom;Lcom/groupbyinc/flux/common/http/conn/ssl/TrustStrategy;Lcom/groupbyinc/flux/common/http/conn/ssl/X509HostnameVerifier;)V E(Ljava/security/KeyStore;Ljava/lang/String;Ljava/security/KeyStore;)V Fcom/groupbyinc/flux/common/http/conn/ssl/BrowserCompatHostnameVerifier ? ()V ?
? ? ?
? -(Ljava/security/KeyStore;Ljava/lang/String;)V z(Lcom/groupbyinc/flux/common/http/conn/ssl/TrustStrategy;Lcom/groupbyinc/flux/common/http/conn/ssl/X509HostnameVerifier;)V ;(Lcom/groupbyinc/flux/common/http/conn/ssl/TrustStrategy;)V
? ? ? isSecure ()Z layer w(Lcom/groupbyinc/flux/common/http/nio/reactor/IOSession;)Lcom/groupbyinc/flux/common/http/nio/reactor/ssl/SSLIOSession;