Package org.postgresql.ssl
Class PKCS12KeyManager
java.lang.Object
org.postgresql.ssl.PKCS12KeyManager
- All Implemented Interfaces:
KeyManager,X509KeyManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias(String[] keyType, Principal[] principals, Socket socket) chooseServerAlias(String s, Principal[] principals, Socket socket) getCertificateChain(String alias) String[]getClientAliases(String keyType, Principal[] principals) String[]getServerAliases(String s, Principal[] principals) voidgetCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inerrorand can be raised by this method.
-
Constructor Details
-
PKCS12KeyManager
- Throws:
PSQLException
-
-
Method Details
-
throwKeyManagerException
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inerrorand can be raised by this method.- Throws:
PSQLException- if any exception is stored inerrorand can be raised
-
getClientAliases
- Specified by:
getClientAliasesin interfaceX509KeyManager
-
chooseClientAlias
- Specified by:
chooseClientAliasin interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliasesin interfaceX509KeyManager
-
chooseServerAlias
- Specified by:
chooseServerAliasin interfaceX509KeyManager
-
getCertificateChain
- Specified by:
getCertificateChainin interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKeyin interfaceX509KeyManager
-