Package org.postgresql.ssl
Class PKCS12KeyManager
java.lang.Object
org.postgresql.ssl.PKCS12KeyManager
- All Implemented Interfaces:
KeyManager
,X509KeyManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
chooseClientAlias
(String[] keyType, Principal @Nullable [] principals, @Nullable Socket socket) @Nullable String
chooseServerAlias
(String s, Principal @Nullable [] principals, @Nullable Socket socket) X509Certificate @Nullable []
getCertificateChain
(String alias) String @Nullable []
getClientAliases
(String keyType, Principal @Nullable [] principals) @Nullable PrivateKey
String @Nullable []
getServerAliases
(String s, Principal @Nullable [] principals) void
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored inerror
and 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 inerror
and can be raised by this method.- Throws:
PSQLException
- if any exception is stored inerror
and can be raised
-
getClientAliases
- Specified by:
getClientAliases
in interfaceX509KeyManager
-
chooseClientAlias
public @Nullable String chooseClientAlias(String[] keyType, Principal @Nullable [] principals, @Nullable Socket socket) - Specified by:
chooseClientAlias
in interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliases
in interfaceX509KeyManager
-
chooseServerAlias
public @Nullable String chooseServerAlias(String s, Principal @Nullable [] principals, @Nullable Socket socket) - Specified by:
chooseServerAlias
in interfaceX509KeyManager
-
getCertificateChain
- Specified by:
getCertificateChain
in interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKey
in interfaceX509KeyManager
-