com.huawei.opengauss.jdbc.ssl.SingleCertValidatingFactory$SingleCertTrustManager.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opengaussjdbc Show documentation
Show all versions of opengaussjdbc Show documentation
HuaweiCloud JDBC for GaussDB
The newest version!
???? 4 ? Pcom/huawei/opengauss/jdbc/ssl/SingleCertValidatingFactory$SingleCertTrustManager java/lang/Object javax/net/ssl/X509TrustManager SingleCertValidatingFactory.java 9com/huawei/opengauss/jdbc/ssl/SingleCertValidatingFactory SingleCertTrustManager )java/security/KeyStore$LoadStoreParameter java/security/KeyStore
LoadStoreParameter cert $Ljava/security/cert/X509Certificate; trustManager Ljavax/net/ssl/X509TrustManager; this$0 ;Lcom/huawei/opengauss/jdbc/ssl/SingleCertValidatingFactory; S(Lcom/huawei/opengauss/jdbc/ssl/SingleCertValidatingFactory;Ljava/io/InputStream;)V java/io/IOException &java/security/GeneralSecurityException ()V
getDefaultType ()Ljava/lang/String; ! "
# getInstance ,(Ljava/lang/String;)Ljava/security/KeyStore; % &
' load .(Ljava/security/KeyStore$LoadStoreParameter;)V ) *
+ X509 - %java/security/cert/CertificateFactory / ;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory; % 1
0 2 generateCertificate 7(Ljava/io/InputStream;)Ljava/security/cert/Certificate; 4 5
0 6 "java/security/cert/X509Certificate 8 : java/util/UUID <
randomUUID ()Ljava/util/UUID; > ?
= @ toString B "
= C setCertificateEntry 5(Ljava/lang/String;Ljava/security/cert/Certificate;)V E F
G !javax/net/ssl/TrustManagerFactory I getDefaultAlgorithm K "
J L 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; % N
J O init (Ljava/security/KeyStore;)V Q R
J S getTrustManagers ()[Ljavax/net/ssl/TrustManager; U V
J W java/io/InputStream Y [Ljavax/net/ssl/TrustManager; [ ] No X509TrustManager found _ !com/huawei/opengauss/jdbc/util/GT a tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; c d
b e (Ljava/lang/String;)V g
h tm Ljavax/net/ssl/TrustManager; this RLcom/huawei/opengauss/jdbc/ssl/SingleCertValidatingFactory$SingleCertTrustManager; in Ljava/io/InputStream; ks Ljava/security/KeyStore; cf 'Ljava/security/cert/CertificateFactory; tmf #Ljavax/net/ssl/TrustManagerFactory; checkClientTrusted :([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V 'java/security/cert/CertificateException x chain %[Ljava/security/cert/X509Certificate; authType Ljava/lang/String; checkServerTrusted ~ w getAcceptedIssuers '()[Ljava/security/cert/X509Certificate; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! ? b
?*+? *? ? $? (N-? ,.? 3:*,? 7? 9? ;-? A? D*? ;? H? M? P:-? T? X:?66? $2: ? ? * ? ? ^? ????*? ^? ? Y`? ? f? i?? ? H b j k ? l m ? ? n o ? p q y r s ? V t u ? B ? ? ? ? ? ) ? 7 ? ? ? E ? b ? j ? s ? v ? | ? ? ? ? ? ? % ? T Z 0 J \ !? ? v w ? ? ? ? l m z { | } ? ? ? y ~ w ? N *? ^+,? ? ? ? l m z { | } ?
? ? ? y ? ? ? 6 ? 9Y*? ;S? ? l m ? ? ? ?