org.postgresql.ssl.LibPQFactory.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
???? 2] ? ?
? ?
? ? ? ? ? ? ?
? ? ? ?
? ? ? ?
? ? ? ` ? ?
?
? ?
? ? ?
y ?
` ?
? ` ? ?
?
a ? ?
? ? ?
? ? ?
y ? ?
y ? ?
? ? ? ? ? ? ? ? ?
y ?
` ? ?
` ?
? ?
? ? ? ?
6 ? ?
? ? ?
? ? ? ? ?
= ? ? ? ? ?
B ? ? ? ?
? ?
? ? ? ? ?
? ? ?
?
? ?
? ?
B
?
?
?
`
=
ConsoleCallbackHandler InnerClasses km Ljavax/net/ssl/KeyManager; defaultfile Z getCallbackHandler F(Ljava/util/Properties;)Ljavax/security/auth/callback/CallbackHandler; Code LineNumberTable LocalVariableTable cbh .Ljavax/security/auth/callback/CallbackHandler; e Ljava/lang/Exception; this !Lorg/postgresql/ssl/LibPQFactory; info Ljava/util/Properties; sslpasswordcallback Ljava/lang/String;
StackMapTable
Exceptions initPk8 =(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;)V
sslkeyfile
defaultdir sslcertfile initP12 +(Ljava/lang/String;Ljava/util/Properties;)V (Ljava/util/Properties;)V tm [Ljavax/net/ssl/TrustManager; ks Ljava/security/KeyStore; !Ljava/security/KeyStoreException; fis Ljava/io/FileInputStream; ex Ljava/io/FileNotFoundException; i I cf 'Ljava/security/cert/CertificateFactory; certs [Ljava/lang/Object; ioex Ljava/io/IOException; gsex (Ljava/security/GeneralSecurityException; tmf #Ljavax/net/ssl/TrustManagerFactory; sslrootcertfile &Ljava/security/KeyManagementException; ctx Ljavax/net/ssl/SSLContext; pathsep sslMode Lorg/postgresql/jdbc/SslMode; (Ljava/security/NoSuchAlgorithmException; ? ? throwKeyManagerException ()V
SourceFile LibPQFactory.java ,javax/security/auth/callback/CallbackHandler java/lang/Exception !org/postgresql/util/PSQLException CThe password callback class provided {0} could not be instantiated. java/lang/Object!"#$%& ?' 6org/postgresql/ssl/LibPQFactory$ConsoleCallbackHandler( ?)* f g java/lang/StringBuilder ? ?+, postgresql.crt-. !org/postgresql/ssl/LazyKeyManager /0 h i ?1 d e #org/postgresql/ssl/PKCS12KeyManager ?2 TLS34 file.separator567 os.name8. windows9: APPDATA;7
postgresql user.home .postgresql< postgresql.pk8 pk8=> { | p12 ? ??@AB javax/net/ssl/TrustManagerC 7org/postgresql/ssl/NonValidatingFactory$NonValidatingTM NonValidatingTM PKIX3D jks3E java/security/KeyStoreException &java/security/NoSuchAlgorithmException jks KeyStore not availableF root.crt java/io/FileInputStream java/io/FileNotFoundException -Could not open SSL root certificate file {0}. X.5093GHI java/security/cert/CertificateJKLMN cert+OPQRST ? java/io/IOException -Could not read SSL root certificate file {0}. &java/security/GeneralSecurityException @Loading the SSL root certificate {0} into a TrustManager failed.UV javax/net/ssl/KeyManagerRW $java/security/KeyManagementException !Could not initialize SSL context.XYZ[ 3Could not find a java cryptographic algorithm: {0}.\. ? ? org/postgresql/ssl/LibPQFactory !org/postgresql/ssl/WrappedFactory java/util/Properties java/lang/String javax/net/ssl/SSLContext org/postgresql/jdbc/SslMode !javax/net/ssl/TrustManagerFactory java/security/KeyStore %java/security/cert/CertificateFactory java/lang/Throwable org/postgresql/PGProperty SSL_PASSWORD_CALLBACK Lorg/postgresql/PGProperty; get *(Ljava/util/Properties;)Ljava/lang/String; !org/postgresql/util/ObjectFactory instantiate O(Ljava/lang/String;Ljava/util/Properties;ZLjava/lang/String;)Ljava/lang/Object; org/postgresql/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; org/postgresql/util/PSQLState CONNECTION_FAILURE Lorg/postgresql/util/PSQLState; I(Ljava/lang/String;Lorg/postgresql/util/PSQLState;Ljava/lang/Throwable;)V SSL_PASSWORD (Ljava/lang/String;)V SSL_CERT append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; equals (Ljava/lang/Object;)Z V(Ljava/lang/String;Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;Z)V C(Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;)V getInstance .(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String; toLowerCase contains (Ljava/lang/CharSequence;)Z getenv SSL_KEY endsWith (Ljava/lang/String;)Z of 5(Ljava/util/Properties;)Lorg/postgresql/jdbc/SslMode; verifyCertificate ()Z 'org/postgresql/ssl/NonValidatingFactory 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; ,(Ljava/lang/String;)Ljava/security/KeyStore;
SSL_ROOT_CERT ;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory; generateCertificates -(Ljava/io/InputStream;)Ljava/util/Collection; java/util/Collection toArray (([Ljava/lang/Object;)[Ljava/lang/Object; load (Ljava/io/InputStream;[C)V (I)Ljava/lang/StringBuilder; setCertificateEntry 5(Ljava/lang/String;Ljava/security/cert/Certificate;)V init (Ljava/security/KeyStore;)V close getTrustManagers ()[Ljavax/net/ssl/TrustManager; W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V getSocketFactory "()Ljavax/net/ssl/SSLSocketFactory; factory Ljavax/net/ssl/SSLSocketFactory;
getMessage ! ` a d e f g h i j ? G? +? N-? --+? ? M? .:? Y? Y-S? ?
? ?? Y?
+? ? M,? k &