org.postgresql.ssl.LibPQFactory.class Maven / Gradle / Ivy
???? 4_ ? ?
? ? ?
? ? ? ? ? ?
? ? ? ?
? ? ? ?
? ? ? ` ? ?
?
? ?
? ? ?
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/0 !org/postgresql/ssl/LazyKeyManager 12 h i ?3 d e #org/postgresql/ssl/PKCS12KeyManager ?4 TLSv1.256 file.separator789 os.name:0 windows;< APPDATA=9
postgresql user.home .postgresql> postgresql.pk8 .p12?@ .pfx ? ? { |ABCD javax/net/ssl/TrustManagerE 7org/postgresql/ssl/NonValidatingFactory$NonValidatingTM NonValidatingTM PKIX5F jks5G java/security/KeyStoreException &java/security/NoSuchAlgorithmException jks KeyStore not availableH root.crt java/io/FileInputStream java/io/FileNotFoundException -Could not open SSL root certificate file {0}. X.5095IJK java/security/cert/CertificateLMNOP cert-QRSTUV ? java/io/IOException -Could not read SSL root certificate file {0}. &java/security/GeneralSecurityException @Loading the SSL root certificate {0} into a TrustManager failed.WX javax/net/ssl/KeyManagerTY $java/security/KeyManagementException !Could not initialize SSL context.Z[\] 3Could not find a java cryptographic algorithm: {0}.^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 [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; 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 ? I? +? N-? /-+? ? M? .:? Y? Y-S? ?
? ?? Y?
+? ? M,? k &