パッケージ org.postgresql.ssl.jdbc4
クラス LibPQFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.postgresql.ssl.WrappedFactory
org.postgresql.ssl.LibPQFactory
org.postgresql.ssl.jdbc4.LibPQFactory
- すべての実装されたインタフェース:
HostnameVerifier
推奨されていません。
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース org.postgresql.ssl.LibPQFactory
LibPQFactory.ConsoleCallbackHandler
-
フィールドの概要
クラスから継承されたフィールド org.postgresql.ssl.WrappedFactory
factory
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明boolean
verify
(String hostname, SSLSession session) 推奨されていません。use PgjdbcHostnameVerifierstatic boolean
verifyHostName
(String hostname, String pattern) 推奨されていません。クラスから継承されたメソッド org.postgresql.ssl.LibPQFactory
throwKeyManagerException
クラスから継承されたメソッド org.postgresql.ssl.WrappedFactory
createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuites
クラスから継承されたメソッド javax.net.ssl.SSLSocketFactory
createSocket, getDefault
クラスから継承されたメソッド javax.net.SocketFactory
createSocket
-
コンストラクタの詳細
-
LibPQFactory
推奨されていません。preferLibPQFactory
- パラメータ:
info
- the connection parameters The following parameters are used: sslmode,sslcert,sslkey,sslrootcert,sslhostnameverifier,sslpasswordcallback,sslpassword- 例外:
PSQLException
- if security error appears when initializing factory
-
-
メソッドの詳細
-
verifyHostName
推奨されていません。Verifies if given hostname matches pattern.- パラメータ:
hostname
- input hostnamepattern
- domain name pattern- 戻り値:
- true when domain matches pattern
-
verify
推奨されていません。use PgjdbcHostnameVerifierVerifies the server certificate according to the libpq rules. The cn attribute of the certificate is matched against the hostname. If the cn attribute starts with an asterisk (*), it will be treated as a wildcard, and will match all characters except a dot (.). This means the certificate will not match subdomains. If the connection is made using an IP address instead of a hostname, the IP address will be matched (without doing any DNS lookups).- 定義:
verify
インタフェース内HostnameVerifier
- パラメータ:
hostname
- Hostname or IP address of the server.session
- The SSL session.- 戻り値:
- true if the certificate belongs to the server, false otherwise.
- 関連項目:
-
LibPQFactory