public class DavMailX509KeyManager extends Object implements X509KeyManager
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOGGER |
Constructor and Description |
---|
DavMailX509KeyManager(X509KeyManager keyManager)
Build the specialized key manager wrapping the default one
|
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket)
Select a client alias.
|
String |
chooseServerAlias(String string,
Principal[] prncpls,
Socket socket)
Passthrough to wrapped keymanager
|
X509Certificate[] |
getCertificateChain(String string)
Passthrough to wrapped keymanager
|
String[] |
getClientAliases(String string,
Principal[] principals)
Get the client aliases, simply pass this through to wrapped key manager
|
PrivateKey |
getPrivateKey(String string)
Passthrough to wrapped keymanager
|
String[] |
getServerAliases(String string,
Principal[] prncpls)
Passthrough to wrapped keymanager
|
protected String |
stripAlias(String alias)
PKCS11 aliases are in the format: dd.0, dd is incremented
every time the SSL connection is re-negotiated
|
public DavMailX509KeyManager(X509KeyManager keyManager)
keyManager
- original key managerpublic String[] getClientAliases(String string, Principal[] principals)
getClientAliases
in interface X509KeyManager
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
chooseClientAlias
in interface X509KeyManager
protected String stripAlias(String alias)
alias
- original aliaspublic String[] getServerAliases(String string, Principal[] prncpls)
getServerAliases
in interface X509KeyManager
public String chooseServerAlias(String string, Principal[] prncpls, Socket socket)
chooseServerAlias
in interface X509KeyManager
public X509Certificate[] getCertificateChain(String string)
getCertificateChain
in interface X509KeyManager
public PrivateKey getPrivateKey(String string)
getPrivateKey
in interface X509KeyManager
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.