All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huawei.opengauss.jdbc.ssl.LibPQFactory.class Maven / Gradle / Ivy

The newest version!
????4\*com/huawei/opengauss/jdbc/ssl/LibPQFactory,com/huawei/opengauss/jdbc/ssl/WrappedFactoryLibPQFactory.javaAcom/huawei/opengauss/jdbc/ssl/LibPQFactory$ConsoleCallbackHandlerConsoleCallbackHandlerBcom/huawei/opengauss/jdbc/ssl/NonValidatingFactory$NonValidatingTM	2com/huawei/opengauss/jdbc/ssl/NonValidatingFactoryNonValidatingTMkm.Lcom/huawei/opengauss/jdbc/ssl/LazyKeyManager;LOGGER#Lcom/huawei/opengauss/jdbc/log/Log;(Ljava/util/Properties;)V,com/huawei/opengauss/jdbc/util/PSQLExceptionjava/lang/Exceptionjava/security/KeyStoreExceptionjava/io/FileNotFoundExceptionjava/io/IOException&java/security/GeneralSecurityException$java/security/KeyManagementException &java/security/NoSuchAlgorithmException"()V$
%TLSv1.2'javax/net/ssl/SSLContext)getInstance.(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;+,
*-file.separator/java/lang/System1getProperty&(Ljava/lang/String;)Ljava/lang/String;34
25os.name7java/lang/String9toLowerCase()Ljava/lang/String;;<
:=windows?contains(Ljava/lang/CharSequence;)ZAB
:Cjava/lang/StringBuilderE
F%APPDATAHgetenvJ4
2Kappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;MN
FO
postgresqlQtoStringS<
FTjava/util/PropertiesV	user.homeX.postgresqlZ$com/huawei/opengauss/jdbc/PGProperty\SSL_CERT&Lcom/huawei/opengauss/jdbc/PGProperty;^_	]`get*(Ljava/util/Properties;)Ljava/lang/String;bc
]dpostgresql.crtfSSL_KEYh_	]ipostgresql.pk8kSSL_PASSWORD_CALLBACKm_	]n,javax/security/auth/callback/CallbackHandlerp,com/huawei/opengauss/jdbc/util/ObjectFactoryrinstantiate`(Ljava/lang/Class;Ljava/lang/String;Ljava/util/Properties;ZLjava/lang/String;)Ljava/lang/Object;tu
svCThe password callback class provided {0} could not be instantiated.xjava/lang/Objectz!com/huawei/opengauss/jdbc/util/GT|tr9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;~
}?(com/huawei/opengauss/jdbc/util/PSQLState?CONNECTION_FAILURE*Lcom/huawei/opengauss/jdbc/util/PSQLState;??	??T(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/util/PSQLState;Ljava/lang/Throwable;)V?
?SSL_PASSWORD?_	]?(Ljava/lang/String;)V?
?,com/huawei/opengauss/jdbc/ssl/LazyKeyManager??equals(Ljava/lang/Object;)Z??
:?SSL_PRIVATEKEY_FACTORY?_	]?h(Ljava/lang/String;Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;ZLjava/lang/String;)V?
??	?&com/huawei/opengauss/jdbc/jdbc/SslMode?of@(Ljava/util/Properties;)Lcom/huawei/opengauss/jdbc/jdbc/SslMode;??
??verifyCertificate()Z??
??javax/net/ssl/TrustManager?

%PKIX?!javax/net/ssl/TrustManagerFactory?7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;+?
??jks?java/security/KeyStore?,(Ljava/lang/String;)Ljava/security/KeyStore;+?
??jks KeyStore not available?
#?
SSL_ROOT_CERT?_	]?root.crt?java/io/FileInputStream?
??-Could not open SSL root certificate file {0}.?X.509?%java/security/cert/CertificateFactory?;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;+?
??generateCertificates-(Ljava/io/InputStream;)Ljava/util/Collection;??
??java/security/cert/Certificate?java/util/Collection?toArray(([Ljava/lang/Object;)[Ljava/lang/Object;????load(Ljava/io/InputStream;[C)V??
??[Ljava/lang/Object;?cert?(I)Ljava/lang/StringBuilder;M?
F?setCertificateEntry5(Ljava/lang/String;Ljava/security/cert/Certificate;)V??
??init(Ljava/security/KeyStore;)V??
??close?$
??	?Catch IOException on close:?!com/huawei/opengauss/jdbc/log/Log?trace*(Ljava/lang/Object;Ljava/lang/Throwable;)V????-Could not read SSL root certificate file {0}.?@Loading the SSL root certificate {0} into a TrustManager failed.?java/lang/ThrowablegetTrustManagers()[Ljavax/net/ssl/TrustManager;
?[Ljavax/net/ssl/TrustManager;javax/net/ssl/KeyManagerW([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V?

*!Could not initialize SSL context.
getSocketFactory"()Ljavax/net/ssl/SSLSocketFactory;
*_factory Ljavax/net/ssl/SSLSocketFactory;	3Could not find a java cryptographic algorithm: {0}.
getMessage<
#
defaultdirLjava/lang/String;cbh.Ljavax/security/auth/callback/CallbackHandler;eLjava/lang/Exception;tmksLjava/security/KeyStore;!Ljava/security/KeyStoreException;fisLjava/io/FileInputStream;exLjava/io/FileNotFoundException;iIcf'Ljava/security/cert/CertificateFactory;certsLjava/io/IOException;ioexgsex(Ljava/security/GeneralSecurityException;tmf#Ljavax/net/ssl/TrustManagerFactory;sslrootcertfile&Ljava/security/KeyManagementException;ctxLjavax/net/ssl/SSLContext;pathsepdefaultfileZsslcertfile
sslkeyfilesslpasswordcallbacksslMode(Lcom/huawei/opengauss/jdbc/jdbc/SslMode;(Ljava/security/NoSuchAlgorithmException;this,Lcom/huawei/opengauss/jdbc/ssl/LibPQFactory;infoLjava/util/Properties;throwKeyManagerExceptionF$
?Gjava/lang/ClassJgetNameL<
KM$com/huawei/opengauss/jdbc/log/LoggerO	getLogger7(Ljava/lang/String;)Lcom/huawei/opengauss/jdbc/log/Log;QR
PSCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions
SourceFileInnerClasses!
Uj	?*?&(?.M0?6N68?6?>@?D?'?FY?GI?L?P-?PR?P-?P?U:?$?FY?GY?6?P-?P[?P-?P?U:?a+?e:?6?FY?G?Pg?P?U:?j+?e:?6?FY?G?Pl?P?U:?o+?e:		?2q	+?w?q:?0:
?Yy?{Y	S????
????Y??+?e??:*??Y????????????+?e????+??:?????Y?
Y??S:
?=???:???:
?:?#Y??????+?e:??FY?G?PöP?U:??Y??:? :?Y??{YS???????ʸ?:???չ?:
??6??*
?FY?G?P??U2?ն????
????i:??????X:?Y??{YS???????:?Y??{YS???????:??:???????:
,?	Y*??S
??:?Y?{???????*,???!M?Y?{Y,?S????,???????ahk???$'?8?U?rty|8tr???!??#VL!D?? !
W"
h#$
m
 %?&'?()?/*+?R,-?@.?) /:0/W12~ /a334w#$
?5??&'?(6
?78?9hb?:;qY<?2=??>	?6"
???@?(A?BC?DEW6M57
:<=#>G@hDqEvFyG?I?J?K?L?Q?R?T?Z?U?V?W?\`a9d?eGgZkanhrkomqws?t?u?y?~?z?{?|?????????????$?'?)?5?8?:?I?U?W?f?r?t?y?|?~???????????????????????????X??GW*:? W*::?&:?&:?
W*:::::?
W*::::q:?
W*::::q:?
W*::::q::?

W*::::q::?
W*::::q:::?1??
W*::::q:?????#:M???"???.?W*::::q:???:?P\\?	W*::::q:???:?
?W*::::q:???:??W*::::q:?T!?
W#YF$UJ*???
*???H?VBCW???XYI$U$?N?T??W.Z[

	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy