public class LazyKeyManager extends Object implements X509KeyManager
| Constructor and Description |
|---|
LazyKeyManager(@Nullable String certfile,
@Nullable String keyfile,
CallbackHandler cbh,
boolean defaultfile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
@Nullable Socket socket) |
@Nullable String |
chooseServerAlias(String keyType,
Principal[] issuers,
@Nullable Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] issuers) |
@Nullable PrivateKey |
getPrivateKey(String alias) |
String[] |
getServerAliases(String keyType,
Principal[] issuers) |
void |
throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored
in
error and can be raised by this method. |
public LazyKeyManager(@Nullable String certfile, @Nullable String keyfile, CallbackHandler cbh, boolean defaultfile)
certfile - certfilekeyfile - key filecbh - callback handlerdefaultfile - default filepublic void throwKeyManagerException()
throws PSQLException
error and can be raised by this method.PSQLException - if any exception is stored in error and can be raisedpublic @Nullable String chooseClientAlias(String[] keyType, Principal[] issuers, @Nullable Socket socket)
chooseClientAlias in interface X509KeyManagerpublic @Nullable String chooseServerAlias(String keyType, Principal[] issuers, @Nullable Socket socket)
chooseServerAlias in interface X509KeyManagerpublic X509Certificate[] getCertificateChain(String alias)
getCertificateChain in interface X509KeyManagerpublic String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases in interface X509KeyManagerpublic @Nullable PrivateKey getPrivateKey(String alias)
getPrivateKey in interface X509KeyManagerpublic String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases in interface X509KeyManagerCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.