public class PKCS12KeyManager
extends java.lang.Object
implements javax.net.ssl.X509KeyManager
| Modifier and Type | Field and Description |
|---|---|
private javax.security.auth.callback.CallbackHandler |
cbh |
private PSQLException |
error |
private java.lang.String |
keyfile |
private java.security.KeyStore |
keyStore |
(package private) boolean |
keystoreLoaded |
| Constructor and Description |
|---|
PKCS12KeyManager(java.lang.String pkcsFile,
javax.security.auth.callback.CallbackHandler cbh) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
chooseClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
java.net.Socket socket) |
java.lang.String |
chooseServerAlias(java.lang.String s,
java.security.Principal[] principals,
java.net.Socket socket) |
java.security.cert.X509Certificate[] |
getCertificateChain(java.lang.String alias) |
java.lang.String[] |
getClientAliases(java.lang.String keyType,
java.security.Principal[] principals) |
java.security.PrivateKey |
getPrivateKey(java.lang.String s) |
java.lang.String[] |
getServerAliases(java.lang.String s,
java.security.Principal[] principals) |
private void |
loadKeyStore() |
void |
throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any exception is stored
in
error and can be raised by this method. |
private final javax.security.auth.callback.CallbackHandler cbh
private PSQLException error
private final java.lang.String keyfile
private final java.security.KeyStore keyStore
boolean keystoreLoaded
public PKCS12KeyManager(java.lang.String pkcsFile,
javax.security.auth.callback.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 java.lang.String[] getClientAliases(java.lang.String keyType,
java.security.Principal[] principals)
getClientAliases in interface javax.net.ssl.X509KeyManagerpublic java.lang.String chooseClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
java.net.Socket socket)
chooseClientAlias in interface javax.net.ssl.X509KeyManagerpublic java.lang.String[] getServerAliases(java.lang.String s,
java.security.Principal[] principals)
getServerAliases in interface javax.net.ssl.X509KeyManagerpublic java.lang.String chooseServerAlias(java.lang.String s,
java.security.Principal[] principals,
java.net.Socket socket)
chooseServerAlias in interface javax.net.ssl.X509KeyManagerpublic java.security.cert.X509Certificate[] getCertificateChain(java.lang.String alias)
getCertificateChain in interface javax.net.ssl.X509KeyManagerpublic java.security.PrivateKey getPrivateKey(java.lang.String s)
getPrivateKey in interface javax.net.ssl.X509KeyManagerprivate void loadKeyStore()
throws java.lang.Exception
java.lang.Exception