com.huawei.shade.org.apache.http.ssl.SSLContextBuilder.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
The newest version!
???? 2U 6com/huawei/shade/org/apache/http/ssl/SSLContextBuilder java/lang/Object SSLContextBuilder.java Icom/huawei/shade/org/apache/http/ssl/SSLContextBuilder$KeyManagerDelegate KeyManagerDelegate Kcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder$TrustManagerDelegate TrustManagerDelegate TLS Ljava/lang/String; protocol keyManagers Ljava/util/Set; +Ljava/util/Set; keyManagerFactoryAlgorithm keyStoreType
trustManagers -Ljava/util/Set; trustManagerFactoryAlgorithm secureRandom Ljava/security/SecureRandom; provider Ljava/security/Provider; create :()Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; ()V
javax/net/ssl/KeyManagerFactory # getDefaultAlgorithm ()Ljava/lang/String; % &
$ '
) java/security/KeyStore + getDefaultType - &
, .
0 !javax/net/ssl/TrustManagerFactory 2
3 '
5 java/util/LinkedHashSet 7
8 : < this 8Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; useProtocol L(Ljava/lang/String;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; Ljava/lang/Deprecated;
C setProtocol setSecureRandom V(Ljava/security/SecureRandom;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; H setProvider R(Ljava/security/Provider;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; L java/security/Security N getProvider ,(Ljava/lang/String;)Ljava/security/Provider; P Q
O R name setKeyStoreType setKeyManagerFactoryAlgorithm setTrustManagerFactoryAlgorithm loadTrustMaterial ?(Ljava/security/KeyStore;Lcom/huawei/shade/org/apache/http/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; &java/security/NoSuchAlgorithmException Z java/security/KeyStoreException \ java/lang/String ^ getInstance 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; ` a
3 b init (Ljava/security/KeyStore;)V d e
3 f getTrustManagers ()[Ljavax/net/ssl/TrustManager; h i
3 j [Ljavax/net/ssl/TrustManager; l javax/net/ssl/X509TrustManager n W(Ljavax/net/ssl/X509TrustManager;Lcom/huawei/shade/org/apache/http/ssl/TrustStrategy;)V p
q
java/util/Set s add (Ljava/lang/Object;)Z u v t w tm Ljavax/net/ssl/TrustManager; i I arr$ len$ i$
truststore Ljava/security/KeyStore;
trustStrategy 4Lcom/huawei/shade/org/apache/http/ssl/TrustStrategy; tmfactory #Ljavax/net/ssl/TrustManagerFactory; tms n(Lcom/huawei/shade/org/apache/http/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; X Y
? ~(Ljava/io/File;[CLcom/huawei/shade/org/apache/http/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; 'java/security/cert/CertificateException ? java/io/IOException ? Truststore file ? *com/huawei/shade/org/apache/http/util/Args ? notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? ,(Ljava/lang/String;)Ljava/security/KeyStore; ` ?
, ? java/io/FileInputStream ? (Ljava/io/File;)V ?
? ? load (Ljava/io/InputStream;[C)V ? ?
, ? close ?
? ? java/io/File ? [C ? 2com/huawei/shade/org/apache/http/ssl/TrustStrategy ? java/lang/Throwable ? file Ljava/io/File;
storePassword
trustStore inStream Ljava/io/FileInputStream; J(Ljava/io/File;[C)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; X ?
? H(Ljava/io/File;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; X ?
? ~(Ljava/net/URL;[CLcom/huawei/shade/org/apache/http/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; Truststore URL ? java/net/URL ?
openStream ()Ljava/io/InputStream; ? ?
? ? java/io/InputStream ?
? ? url Ljava/net/URL; Ljava/io/InputStream; J(Ljava/net/URL;[C)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; X ?
? loadKeyMaterial ?(Ljava/security/KeyStore;[CLcom/huawei/shade/org/apache/http/ssl/PrivateKeyStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; 'java/security/UnrecoverableKeyException ? 5(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory; ` ?
$ ? (Ljava/security/KeyStore;[C)V d ?
$ ? getKeyManagers ()[Ljavax/net/ssl/KeyManager; ? ?
$ ? [Ljavax/net/ssl/KeyManager; ? $javax/net/ssl/X509ExtendedKeyManager ? b(Ljavax/net/ssl/X509ExtendedKeyManager;Lcom/huawei/shade/org/apache/http/ssl/PrivateKeyStrategy;)V ?
? km Ljavax/net/ssl/KeyManager; keystore keyPassword
aliasStrategy 9Lcom/huawei/shade/org/apache/http/ssl/PrivateKeyStrategy; kmfactory !Ljavax/net/ssl/KeyManagerFactory; kms T(Ljava/security/KeyStore;[C)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; ? ?
? ?(Ljava/io/File;[C[CLcom/huawei/shade/org/apache/http/ssl/PrivateKeyStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder;
Keystore file ? 7com/huawei/shade/org/apache/http/ssl/PrivateKeyStrategy ?
identityStore L(Ljava/io/File;[C[C)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; ? ?
? ?(Ljava/net/URL;[C[CLcom/huawei/shade/org/apache/http/ssl/PrivateKeyStrategy;)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; Keystore URL ? L(Ljava/net/URL;[C[C)Lcom/huawei/shade/org/apache/http/ssl/SSLContextBuilder; ? ?
? initSSLContext e(Ljavax/net/ssl/SSLContext;Ljava/util/Collection;Ljava/util/Collection;Ljava/security/SecureRandom;)V ?(Ljavax/net/ssl/SSLContext;Ljava/util/Collection;Ljava/util/Collection;Ljava/security/SecureRandom;)V $java/security/KeyManagementException ? java/util/Collection isEmpty ()Z size ()I javax/net/ssl/KeyManager toArray (([Ljava/lang/Object;)[Ljava/lang/Object;
javax/net/ssl/SSLContext java/security/SecureRandom javax/net/ssl/TrustManager W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V d
sslContext Ljavax/net/ssl/SSLContext; 2Ljava/util/Collection; Ljava/util/Collection; 4Ljava/util/Collection; build ()Ljavax/net/ssl/SSLContext; F(Ljava/lang/String;Ljava/security/Provider;)Ljavax/net/ssl/SSLContext; `!
" .(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; `$
% ? ?
' protocolStr toString java/lang/StringBuilder+
,
[provider=. append -(Ljava/lang/String;)Ljava/lang/StringBuilder;01
,2 -(Ljava/lang/Object;)Ljava/lang/StringBuilder;04
,5 , protocol=7 , keyStoreType=9 , keyManagerFactoryAlgorithm=; , keyManagers== , trustManagerFactoryAlgorithm=? , trustManagers=A , secureRandom=C ]E* &
,G
ConstantValue Signature Code LineNumberTable LocalVariableTable
Deprecated RuntimeVisibleAnnotations
StackMapTable
Exceptions LocalVariableTypeTable InnerClasses
SourceFile !
I
J
J
K ? Y? !? L ] K r 0*? "*? (? **? /? 1*? 4? 6*? 8Y? 9? ;*? 8Y? 9? =? L a U V X b $ c / dM 0 > ? @ A K ? *+? D*? L
w xM > ?
N O B E A K ? *+? D*? L
? ?M > ?
F G K ? *+? I*? L
? ?M > ? J K K ? *+? M*? L
? ?M > ? J A K B
*+? S? M*? L
? ?M
> ?
T
U A K ? *+? 1*? L
? ?M > ?
V A K ? *+? **? L
? ?M > ?
W A K ? *+? 6*? L
? ?M > ?
X Y K q ?*? 6? ? 4? *? 6? cN-+? g-? k:? e,? 56?? *2:? o? ?
Y? o,? rS????:?66? 2:*? =? x W????*? P
C _? 3 m(? ? m? L : ? ? ? ? % ? ) ? 4 ? ; ? C ? U ? [ ? u ? ? ? ? ?M p ; y z , / { | u y z _ ( } l d # ~ | g | ? > ? ? ? ? ? ? ? t ? ? i ? l Q [ ] X ? K ; *+? ?? L ?M > ? ? ? Q [ ] X ? K ? <+?? ?W*? 1? ?:? ?Y+? ?:,? ?? ??
:? ??*-? ?? " * * , * P ? * ? ? ? , ? ? L " ? ? ? ? " ' * 4M > <