public class AliasedX509KeyManager extends Object implements X509KeyManager
Constructor and Description |
---|
AliasedX509KeyManager(String keyAlias,
X509KeyManager keyManager)
Construct KeyManager instance
|
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) |
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 AliasedX509KeyManager(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)
chooseClientAlias
in interface X509KeyManager
X509KeyManager.chooseClientAlias(java.lang.String[], java.security.Principal[], java.net.Socket)
public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
chooseServerAlias
in interface X509KeyManager
X509KeyManager.chooseServerAlias(java.lang.String, java.security.Principal[], java.net.Socket)
public String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases
in interface X509KeyManager
X509KeyManager.getClientAliases(java.lang.String, java.security.Principal[])
public String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases
in interface X509KeyManager
X509KeyManager.getServerAliases(java.lang.String, java.security.Principal[])
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
X509KeyManager.getCertificateChain(java.lang.String)
public PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface X509KeyManager
X509KeyManager.getPrivateKey(java.lang.String)
Copyright © 1995-2015 Webtide. All Rights Reserved.