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 X509KeyManager
public @Nullable String chooseServerAlias(String keyType, Principal[] issuers, @Nullable Socket socket)
chooseServerAlias
in interface X509KeyManager
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
public String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases
in interface X509KeyManager
public @Nullable PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface X509KeyManager
public String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases
in interface X509KeyManager
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.