public final class JSSEKeyManager extends X509ExtendedKeyManager
Constructor and Description |
---|
JSSEKeyManager(X509KeyManager mgr,
String serverKeyAlias)
Constructor.
|
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)
Returns the server key alias that was provided in the constructor or the
result from
X509ExtendedKeyManager.chooseEngineServerAlias(String,
Principal[], SSLEngine) for the delegate if no alias is specified. |
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket)
Returns the server key alias that was provided in the constructor or the
result from
X509KeyManager.chooseServerAlias(String, Principal[],
Socket) for the delegate if no alias is specified. |
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] issuers) |
PrivateKey |
getPrivateKey(String alias) |
String[] |
getServerAliases(String keyType,
Principal[] issuers) |
public JSSEKeyManager(X509KeyManager mgr, String serverKeyAlias)
mgr
- The X509KeyManager used as a delegateserverKeyAlias
- The alias name of the server's keypair and
supporting certificate chainpublic String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
X509KeyManager.chooseServerAlias(String, Principal[],
Socket)
for the delegate if no alias is specified.public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
X509ExtendedKeyManager.chooseEngineServerAlias(String,
Principal[], SSLEngine)
for the delegate if no alias is specified.chooseEngineServerAlias
in class X509ExtendedKeyManager
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
public X509Certificate[] getCertificateChain(String alias)
public PrivateKey getPrivateKey(String alias)
public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine)
chooseEngineClientAlias
in class X509ExtendedKeyManager
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.