public class LazyKeyManager extends Object implements X509KeyManager
| Constructor and Description |
|---|
LazyKeyManager(String certfile,
String keyfile,
CallbackHandler cbh,
boolean defaultfile)
Constructor. certfile and keyfile can be null, in that case no certificate is presented to the
server.
|
| Modifier and Type | Method and Description |
|---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) |
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] issuers) |
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(String certfile, 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 methodPSQLException - if any exception is stored in error and can be raisedpublic String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
chooseClientAlias in interface X509KeyManagerpublic String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
chooseServerAlias in interface X509KeyManagerpublic X509Certificate[] getCertificateChain(String alias)
getCertificateChain in interface X509KeyManagerpublic String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases in interface X509KeyManagerpublic PrivateKey getPrivateKey(String alias)
getPrivateKey in interface X509KeyManagerpublic String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases in interface X509KeyManagerCopyright © 2016 PostgreSQL Global Development Group. All rights reserved.