Package org.postgresql.ssl
Class PKCS12KeyManager
java.lang.Object
org.postgresql.ssl.PKCS12KeyManager
- All Implemented Interfaces:
KeyManager
,X509KeyManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallbackHandler
private PSQLException
private final String
private final KeyStore
(package private) boolean
-
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) private void
void
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored inerror
and can be raised by this method.
-
Field Details
-
cbh
-
error
-
keyfile
-
keyStore
-
keystoreLoaded
boolean keystoreLoaded
-
-
Constructor Details
-
PKCS12KeyManager
- Throws:
PSQLException
-
-
Method Details
-
throwKeyManagerException
getCertificateChain and getPrivateKey cannot throw exeptions, 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
- Specified by:
chooseClientAlias
in interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliases
in interfaceX509KeyManager
-
chooseServerAlias
- Specified by:
chooseServerAlias
in interfaceX509KeyManager
-
getCertificateChain
- Specified by:
getCertificateChain
in interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKey
in interfaceX509KeyManager
-
loadKeyStore
- Throws:
Exception
-