パッケージ org.postgresql.ssl
クラス LazyKeyManager
java.lang.Object
org.postgresql.ssl.LazyKeyManager
- すべての実装されたインタフェース:
KeyManager
,X509KeyManager
A Key manager that only loads the keys, if necessary.
-
コンストラクタの概要
コンストラクタコンストラクタ説明LazyKeyManager
(@Nullable String certfile, @Nullable String keyfile, CallbackHandler cbh, boolean defaultfile) Constructor. certfile and keyfile can be null, in that case no certificate is presented to the server. -
メソッドの概要
修飾子とタイプメソッド説明@Nullable String
chooseClientAlias
(String[] keyType, Principal @Nullable [] issuers, @Nullable Socket socket) @Nullable String
chooseServerAlias
(String keyType, Principal @Nullable [] issuers, @Nullable Socket socket) X509Certificate @Nullable []
getCertificateChain
(String alias) String @Nullable []
getClientAliases
(String keyType, Principal @Nullable [] issuers) @Nullable PrivateKey
getPrivateKey
(String alias) String @Nullable []
getServerAliases
(String keyType, Principal @Nullable [] issuers) void
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inerror
and can be raised by this method.
-
コンストラクタの詳細
-
LazyKeyManager
public LazyKeyManager(@Nullable String certfile, @Nullable String keyfile, CallbackHandler cbh, boolean defaultfile) Constructor. certfile and keyfile can be null, in that case no certificate is presented to the server.- パラメータ:
certfile
- certfilekeyfile
- key filecbh
- callback handlerdefaultfile
- default file
-
-
メソッドの詳細
-
throwKeyManagerException
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inerror
and can be raised by this method.- 例外:
PSQLException
- if any exception is stored inerror
and can be raised
-
chooseClientAlias
public @Nullable String chooseClientAlias(String[] keyType, Principal @Nullable [] issuers, @Nullable Socket socket) - 定義:
chooseClientAlias
インタフェース内X509KeyManager
-
chooseServerAlias
public @Nullable String chooseServerAlias(String keyType, Principal @Nullable [] issuers, @Nullable Socket socket) - 定義:
chooseServerAlias
インタフェース内X509KeyManager
-
getCertificateChain
- 定義:
getCertificateChain
インタフェース内X509KeyManager
-
getClientAliases
- 定義:
getClientAliases
インタフェース内X509KeyManager
-
getPrivateKey
- 定義:
getPrivateKey
インタフェース内X509KeyManager
-
getServerAliases
- 定義:
getServerAliases
インタフェース内X509KeyManager
-