com.groupbyinc.flux.common.apache.http.conn.ssl.SSLContextBuilder.class Maven / Gradle / Ivy
???? 2 ? Acom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder java/lang/Object SSLContextBuilder.java Ljava/lang/Deprecated; ALcom/groupbyinc/flux/common/apache/http/annotation/NotThreadSafe; Tcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder$KeyManagerDelegate KeyManagerDelegate Vcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder$TrustManagerDelegate TrustManagerDelegate TLS Ljava/lang/String; SSL protocol keymanagers Ljava/util/Set; +Ljava/util/Set;
trustmanagers -Ljava/util/Set; secureRandom Ljava/security/SecureRandom; ()V
java/util/LinkedHashSet
" $ this CLcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; useTLS E()Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; * useSSL useProtocol W(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; setSecureRandom a(Ljava/security/SecureRandom;)Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; 1 loadTrustMaterial ?(Ljava/security/KeyStore;Lcom/groupbyinc/flux/common/apache/http/conn/ssl/TrustStrategy;)Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; &java/security/NoSuchAlgorithmException 5 java/security/KeyStoreException 7 !javax/net/ssl/TrustManagerFactory 9 getDefaultAlgorithm ()Ljava/lang/String; ; <
: = getInstance 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; ? @
: A init (Ljava/security/KeyStore;)V C D
: E getTrustManagers ()[Ljavax/net/ssl/TrustManager; G H
: I [Ljavax/net/ssl/TrustManager; K javax/net/ssl/X509TrustManager M b(Ljavax/net/ssl/X509TrustManager;Lcom/groupbyinc/flux/common/apache/http/conn/ssl/TrustStrategy;)V O
P
java/util/Set R add (Ljava/lang/Object;)Z T U S V tm Ljavax/net/ssl/TrustManager; i I arr$ len$ i$
truststore Ljava/security/KeyStore;
trustStrategy ?Lcom/groupbyinc/flux/common/apache/http/conn/ssl/TrustStrategy; tmfactory #Ljavax/net/ssl/TrustManagerFactory; tms ](Ljava/security/KeyStore;)Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; 3 4
g loadKeyMaterial _(Ljava/security/KeyStore;[C)Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; 'java/security/UnrecoverableKeyException k ?(Ljava/security/KeyStore;[CLcom/groupbyinc/flux/common/apache/http/conn/ssl/PrivateKeyStrategy;)Lcom/groupbyinc/flux/common/apache/http/conn/ssl/SSLContextBuilder; i m
n keystore keyPassword [C javax/net/ssl/KeyManagerFactory s
t = 5(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory; ? v
t w (Ljava/security/KeyStore;[C)V C y
t z getKeyManagers ()[Ljavax/net/ssl/KeyManager; | }
t ~ [Ljavax/net/ssl/KeyManager; ? javax/net/ssl/X509KeyManager ? e(Ljavax/net/ssl/X509KeyManager;Lcom/groupbyinc/flux/common/apache/http/conn/ssl/PrivateKeyStrategy;)V ?
? km Ljavax/net/ssl/KeyManager;
aliasStrategy DLcom/groupbyinc/flux/common/apache/http/conn/ssl/PrivateKeyStrategy; kmfactory !Ljavax/net/ssl/KeyManagerFactory; kms build ()Ljavax/net/ssl/SSLContext; $java/security/KeyManagementException ? java/lang/String ? javax/net/ssl/SSLContext ? .(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; ? ?
? ? isEmpty ()Z ? ? S ? size ()I ? ? S ? javax/net/ssl/KeyManager ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? S ? javax/net/ssl/TrustManager ? W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V C ?
? ?
sslcontext Ljavax/net/ssl/SSLContext;
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile
Deprecated InnerClasses RuntimeVisibleAnnotations RuntimeInvisibleAnnotations ! ? ? ? ?
? Q *? *? Y? !? #*? Y? !? %? ? &