com.huawei.gauss200.jdbc.ssl.LazyKeyManager.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
The newest version!
???? 4`
? X ? X ? X ? X ? X ? X ? X ? ?
X ?
?
? ? ?
? ? ? ? ? ?
? ? ? ?
? ?
?
? ?
? ? ? ? ? ? ? ? ? [ ? ?
X ? ? ?
% ?
% ?
% ?
% ?
X ?
? ? ?
? ? ?
/ ?
? ? ? ?
3 ?
3 ?
P ? ? ?
7 ?
8 ? ? ?
;
@ ?
" ?
;
I
;
3
P
3
8 ? cert %[Ljava/security/cert/X509Certificate; key Ljava/security/PrivateKey; certfile Ljava/lang/String; keyfile cbh .Ljavax/security/auth/callback/CallbackHandler; defaultfile Z error -Lcom/huawei/gauss200/jdbc/util/PSQLException; V(Ljava/lang/String;Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;Z)V Code LineNumberTable LocalVariableTable this -Lcom/huawei/gauss200/jdbc/ssl/LazyKeyManager; throwKeyManagerException ()V
StackMapTable
Exceptions chooseClientAlias R([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String; issuer Ljava/security/Principal; ourissuer (Ljavax/security/auth/x500/X500Principal; found certchain keyType [Ljava/lang/String; issuers [Ljava/security/Principal; socket Ljava/net/Socket; { } chooseServerAlias Q(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String; getCertificateChain 9(Ljava/lang/String;)[Ljava/security/cert/X509Certificate; cf 'Ljava/security/cert/CertificateFactory; ex )Ljava/security/cert/CertificateException; ioex Ljava/io/IOException; certs Ljava/util/Collection; Ljava/io/FileNotFoundException; gsex certfileStream Ljava/io/FileInputStream; alias LocalVariableTypeTable 9Ljava/util/Collection<+Ljava/security/cert/Certificate;>;!"# getClientAliases A(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;
readFileFully (Ljava/lang/String;)[B ret [B path raf Ljava/io/RandomAccessFile;
getPrivateKey .(Ljava/lang/String;)Ljava/security/PrivateKey; keydata pkcs8KeySpec Ljava/security/spec/KeySpec; cipher Ljavax/crypto/Cipher; npex %Ljavax/crypto/NoSuchPaddingException; ucex ;Ljavax/security/auth/callback/UnsupportedCallbackException;
pbeKeySpec Ljavax/crypto/spec/PBEKeySpec; skFac Ljavax/crypto/SecretKeyFactory; pbeKey Ljava/security/Key; algParams #Ljava/security/AlgorithmParameters; ikex (Ljava/security/GeneralSecurityException; ePKInfo &Ljavax/crypto/EncryptedPrivateKeyInfo; pwdcb /Ljavax/security/auth/callback/PasswordCallback; ,Ljava/security/spec/InvalidKeySpecException; kf Ljava/security/KeyFactory; (Ljava/security/NoSuchAlgorithmException; ?$ getServerAliases
SourceFile LazyKeyManager.java g o Z [ \ ] e f ^ _ ` _ a b c d user ? ?%&'( X.509)* 'java/security/cert/CertificateException +com/huawei/gauss200/jdbc/util/PSQLException VCould not find a java cryptographic algorithm: X.509 CertificateFactory not available. java/lang/Object+,-./0 g1 java/io/FileInputStream g2345 o java/io/IOException )Could not close SSL certificate file {0}. java/io/FileNotFoundException (Could not open SSL certificate file {0}. 9Loading the SSL certificate {0} into a KeyManager failed. "java/security/cert/X509Certificate67 java/lang/String java/net/Socket r s java/io/RandomAccessFile r g89:;< ? ?=>?@A)B &java/security/spec/PKCS8EncodedKeySpec g<CD *java/security/spec/InvalidKeySpecException $javax/crypto/EncryptedPrivateKeyInfoEA)F #javax/crypto/NoSuchPaddingException &java/security/NoSuchAlgorithmExceptionGA gH -javax/security/auth/callback/PasswordCallback Enter SSL password: gI %javax/security/auth/callback/CallbackJKL 9javax/security/auth/callback/UnsupportedCallbackExceptionM @com/huawei/gauss200/jdbc/ssl/LibPQFactory$ConsoleCallbackHandler ConsoleCallbackHandler InnerClasses Console is not available CCould not read password for SSL key file, console is not available. @Could not read password for SSL key file by callbackhandler {0}.NOPQA javax/crypto/spec/PBEKeySpecRS gTU oV)WXYZ[ javax/crypto/Cipher\]^_ &java/security/GeneralSecurityException #Could not decrypt SSL key file {0}. Could not read SSL key file {0}. 3Could not find a java cryptographic algorithm: {0}. +com/huawei/gauss200/jdbc/ssl/LazyKeyManager javax/net/ssl/X509KeyManager &javax/security/auth/x500/X500Principal %java/security/cert/CertificateFactory java/util/Collection java/lang/Throwable java/security/KeyFactory getIssuerX500Principal *()Ljavax/security/auth/x500/X500Principal; equals (Ljava/lang/Object;)Z getInstance ;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory; com/huawei/gauss200/jdbc/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; 'com/huawei/gauss200/jdbc/util/PSQLState CONNECTION_FAILURE )Lcom/huawei/gauss200/jdbc/util/PSQLState; S(Ljava/lang/String;Lcom/huawei/gauss200/jdbc/util/PSQLState;Ljava/lang/Throwable;)V (Ljava/lang/String;)V generateCertificates -(Ljava/io/InputStream;)Ljava/util/Collection; close toArray (([Ljava/lang/Object;)[Ljava/lang/Object; '(Ljava/lang/String;Ljava/lang/String;)V length ()J readFully ([B)V getPublicKey ()Ljava/security/PublicKey; java/security/PublicKey getAlgorithm ()Ljava/lang/String; .(Ljava/lang/String;)Ljava/security/KeyFactory; generatePrivate 8(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
getAlgName )(Ljava/lang/String;)Ljavax/crypto/Cipher;
getMessage *(Ljava/lang/String;Ljava/lang/Throwable;)V (Ljava/lang/String;Z)V ,javax/security/auth/callback/CallbackHandler handle +([Ljavax/security/auth/callback/Callback;)V )com/huawei/gauss200/jdbc/ssl/LibPQFactory getClass ()Ljava/lang/Class; java/lang/Class getName getPassword ()[C ([C)V
clearPassword javax/crypto/SecretKeyFactory 3(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory; generateSecret 6(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey; getAlgParameters %()Ljava/security/AlgorithmParameters; init :(ILjava/security/Key;Ljava/security/AlgorithmParameters;)V
getKeySpec ?(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec; ! X Y Z [ \ ] ^ _ ` _ a b c d e f g h i ? )*? *? *? *? *+? *,? *-? *? ? j &