public class SecurityKeyManager extends Object implements X509KeyManager
Constructor and Description |
---|
SecurityKeyManager(X509KeyManager keyManager,
String serverAlias,
String clientAlias) |
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 SecurityKeyManager(X509KeyManager keyManager, String serverAlias, String clientAlias)
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
chooseClientAlias
in interface X509KeyManager
X509KeyManager.chooseClientAlias(String[], Principal[], Socket)
public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
chooseServerAlias
in interface X509KeyManager
X509KeyManager.chooseServerAlias(String, Principal[], Socket)
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
X509KeyManager.getCertificateChain(String)
public String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases
in interface X509KeyManager
X509KeyManager.getClientAliases(String, Principal[])
public PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface X509KeyManager
X509KeyManager.getPrivateKey(String)
public String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases
in interface X509KeyManager
X509KeyManager.getServerAliases(String, Principal[])
Copyright © 2016 JBoss by Red Hat. All rights reserved.