org.postgresql.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
???? 2[
? V ? V ? V ? V ? V ? V ? V ? ?
V ?
?
? ? ?
? ? ? ? ? ?
? ? ? ?
? ?
?
? ? ? ? ? ? ? ? Y ? ?
V ? ? ?
" ?
" ?
" ?
" ?
V ?
? ? ?
? ? ?
, ?
? ? ? ?
0 ?
0 ?
M ? ? ?
4 ?
5 ? ? ?
8 ? ? ? ? ?
= ?
?
8
F
8
0
M
0
5 ? cert %[Ljava/security/cert/X509Certificate; key Ljava/security/PrivateKey; certfile Ljava/lang/String; keyfile cbh .Ljavax/security/auth/callback/CallbackHandler; defaultfile Z error #Lorg/postgresql/util/PSQLException; V(Ljava/lang/String;Ljava/lang/String;Ljavax/security/auth/callback/CallbackHandler;Z)V Code LineNumberTable LocalVariableTable this #Lorg/postgresql/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; y { 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; certs Ljava/util/Collection; ioex Ljava/io/FileNotFoundException; gsex 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/io/IOException; (Ljava/security/NoSuchAlgorithmException; ? getServerAliases
SourceFile LazyKeyManager.java e m X Y Z [ c d \ ] ^ ] _ ` a b user ? ? !"# X.509$% 'java/security/cert/CertificateException !org/postgresql/util/PSQLException VCould not find a java cryptographic algorithm: X.509 CertificateFactory not available. java/lang/Object&'()*+ e, java/io/FileInputStream e-./ java/io/FileNotFoundException (Could not open SSL certificate file {0}. 9Loading the SSL certificate {0} into a KeyManager failed. "java/security/cert/X509Certificate01 java/lang/String java/net/Socket p q java/io/RandomAccessFile r e234567 m ? ?89:;<$= &java/security/spec/PKCS8EncodedKeySpec e6>? *java/security/spec/InvalidKeySpecException $javax/crypto/EncryptedPrivateKeyInfo@<$A #javax/crypto/NoSuchPaddingException &java/security/NoSuchAlgorithmExceptionB< eC -javax/security/auth/callback/PasswordCallback Enter SSL password: eD %javax/security/auth/callback/CallbackEFG 9javax/security/auth/callback/UnsupportedCallbackExceptionH 6org/postgresql/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}.IJKL< javax/crypto/spec/PBEKeySpecMN eOP mQ$RSTUV javax/crypto/CipherWXYZ &java/security/GeneralSecurityException #Could not decrypt SSL key file {0}. java/io/IOException Could not read SSL key file {0}. 3Could not find a java cryptographic algorithm: {0}. !org/postgresql/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; 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 (Ljava/lang/String;)V generateCertificates -(Ljava/io/InputStream;)Ljava/util/Collection; toArray (([Ljava/lang/Object;)[Ljava/lang/Object; '(Ljava/lang/String;Ljava/lang/String;)V length ()J readFully ([B)V close 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 org/postgresql/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; ! V W X Y Z [ \ ] ^ ] _ ` a b c d e f g ? )*? *? *? *? *+? *,? *-? *? ? h &