public class BasicX509KeyManager extends Object implements X509KeyManager
Constructor and Description |
---|
BasicX509KeyManager(X509KeyManager km,
String alias)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] strings,
Principal[] prncpls,
Socket socket) |
String |
chooseServerAlias(String string,
Principal[] prncpls,
Socket socket) |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] prncpls) |
PrivateKey |
getPrivateKey(String alias) |
String[] |
getServerAliases(String keyType,
Principal[] prncpls) |
public BasicX509KeyManager(X509KeyManager km, String alias)
km
- underlying KeyManager this class delegates toalias
- the alias of the X509 certificate we always usepublic String chooseClientAlias(String[] strings, Principal[] prncpls, Socket socket)
chooseClientAlias
in interface X509KeyManager
public String chooseServerAlias(String string, Principal[] prncpls, Socket socket)
chooseServerAlias
in interface X509KeyManager
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
public String[] getClientAliases(String keyType, Principal[] prncpls)
getClientAliases
in interface X509KeyManager
public PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface X509KeyManager
public String[] getServerAliases(String keyType, Principal[] prncpls)
getServerAliases
in interface X509KeyManager
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.