public class AliasedX509ExtendedKeyManager extends X509ExtendedKeyManager
Constructor and Description |
---|
AliasedX509ExtendedKeyManager(String keyAlias,
X509KeyManager keyManager)
Construct KeyManager instance
|
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) |
String |
chooseEngineClientAlias(String[] keyType,
Principal[] issuers,
SSLEngine engine) |
String |
chooseEngineServerAlias(String keyType,
Principal[] issuers,
SSLEngine engine) |
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] issuers) |
PrivateKey |
getPrivateKey(String alias) |
String[] |
getServerAliases(String keyType,
Principal[] issuers) |
public AliasedX509ExtendedKeyManager(String keyAlias, X509KeyManager keyManager) throws Exception
keyAlias
- Alias of the key to be selectedkeyManager
- Instance of KeyManager to be wrappedException
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
public X509Certificate[] getCertificateChain(String alias)
public PrivateKey getPrivateKey(String alias)
public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
Copyright © 1995-2015 Webtide. All Rights Reserved.