public class PKCS12KeyManager extends Object implements X509KeyManager
| Constructor and Description |
|---|
PKCS12KeyManager(String pkcsFile,
CallbackHandler cbh) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
chooseClientAlias(String[] strings,
Principal[] principals,
@Nullable Socket socket) |
@Nullable String |
chooseServerAlias(String s,
Principal[] principals,
@Nullable Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] principals) |
@Nullable PrivateKey |
getPrivateKey(String s) |
String[] |
getServerAliases(String s,
Principal[] principals) |
void |
throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored
in
error and can be raised by this method. |
public PKCS12KeyManager(String pkcsFile, CallbackHandler cbh) throws PSQLException
PSQLExceptionpublic void throwKeyManagerException()
throws PSQLException
error and can be raised by this method.PSQLException - if any exception is stored in error and can be raisedpublic String[] getClientAliases(String keyType, Principal[] principals)
getClientAliases in interface X509KeyManagerpublic @Nullable String chooseClientAlias(String[] strings, Principal[] principals, @Nullable Socket socket)
chooseClientAlias in interface X509KeyManagerpublic String[] getServerAliases(String s, Principal[] principals)
getServerAliases in interface X509KeyManagerpublic @Nullable String chooseServerAlias(String s, Principal[] principals, @Nullable Socket socket)
chooseServerAlias in interface X509KeyManagerpublic X509Certificate[] getCertificateChain(String alias)
getCertificateChain in interface X509KeyManagerpublic @Nullable PrivateKey getPrivateKey(String s)
getPrivateKey in interface X509KeyManagerCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.