org.postgresql.ssl
public class PKCS12KeyManager extends Object implements X509KeyManager
Constructor and Description |
---|
PKCS12KeyManager(String pkcsFile,
CallbackHandler cbh) |
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] strings,
Principal[] principals,
Socket socket) |
String |
chooseServerAlias(String s,
Principal[] principals,
Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] principals) |
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
PSQLException
public 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 X509KeyManager
public String chooseClientAlias(String[] strings, Principal[] principals, Socket socket)
chooseClientAlias
in interface X509KeyManager
public String[] getServerAliases(String s, Principal[] principals)
getServerAliases
in interface X509KeyManager
public String chooseServerAlias(String s, Principal[] principals, Socket socket)
chooseServerAlias
in interface X509KeyManager
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
public PrivateKey getPrivateKey(String s)
getPrivateKey
in interface X509KeyManager
Copyright © 2020 PostgreSQL Global Development Group. All rights reserved.