org.postgresql.ssl.LibPQFactory.class Maven / Gradle / Ivy
???? 4m ? ?
? ? ?
? ? ? ? ? ?
? ? ? ?
? ? ? ?
? ? ? e ? ?
?
? ?
? ? ?
~ ?
e ?
? e ? ?
?
f ? ?
? ? ?
? ? ?
~ ? ?
~ ? ?
? ? ? ? ? ? ? ? ?
~ ? ?
e ?
e ?
? ?
? ? ? ?
6 ? ?
? ? ?
? ? ? ? ?
= ? ? ? ? ?
B ? ? ? ?
? ?
? ? ?
?
?
?
B
? ?
~
Y
?
? e
=
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; crlFilePath (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./0123 ?4 6org/postgresql/ssl/LibPQFactory$ConsoleCallbackHandler5( ?67( k l java/lang/StringBuilder ? ?89 postgresql.crt:; !org/postgresql/ssl/LazyKeyManager <= m n ?> i j #org/postgresql/ssl/PKCS12KeyManager ?? TLSv1.2@A file.separatorBCD os.nameE; windowsFG APPDATAHD
postgresql user.home .postgresqlI( postgresql.pk8 .p12JK .pfx ? ? ? ?LMNO javax/net/ssl/TrustManagerP 7org/postgresql/ssl/NonValidatingFactory$NonValidatingTM NonValidatingTM PKIX@Q jks@R java/security/KeyStoreException &java/security/NoSuchAlgorithmException jks KeyStore not availableS( root.crt java/io/FileInputStream java/io/FileNotFoundException -Could not open SSL root certificate file {0}. X.509@TUV java/security/cert/CertificateWXYZ[ cert8\]^_`a ? java/io/IOException -Could not read SSL root certificate file {0}. &java/security/GeneralSecurityException @Loading the SSL root certificate {0} into a TrustManager failed.bcd(eO javax/net/ssl/X509TrustManager +org/postgresql/ssl/CheckCertCrlTrustManager ?f javax/net/ssl/KeyManager_g $java/security/KeyManagementException !Could not initialize SSL context.hijk 3Could not find a java cryptographic algorithm: {0}.l; ? ? 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 [Ljavax/net/ssl/KeyManager; org/postgresql/PGProperty SSL_PASSWORD_CALLBACK Lorg/postgresql/PGProperty; get *(Ljava/util/Properties;)Ljava/lang/String; !org/postgresql/util/ObjectFactory instantiate `(Ljava/lang/Class;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; SSL_CRL isEmpty 1(Ljavax/net/ssl/TrustManager;Ljava/lang/String;)V W([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V getSocketFactory "()Ljavax/net/ssl/SSLSocketFactory; factory Ljavax/net/ssl/SSLSocketFactory;
getMessage ! e f i j k l m n o ? I? +? N-? /-+? ? M? .:? Y? Y-S? ?
? ?? Y?
+? ? M,? p &