public class PokerFaceKeyManager extends X509ExtendedKeyManager
X509ExtendedKeyManager
which always returns it's own 'server' alias, but delegates all other calls.Constructor and Description |
---|
PokerFaceKeyManager(String alias,
X509ExtendedKeyManager delegate)
Primary 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)
Always returns the hard coded alias specified in the constructor.
|
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket)
Always returns the hard coded alias specified in the constructor.
|
X509Certificate[] |
getCertificateChain(String alias) |
String[] |
getClientAliases(String keyType,
Principal[] issuers) |
PrivateKey |
getPrivateKey(String alias) |
String[] |
getServerAliases(String keyType,
Principal[] issuers) |
public PokerFaceKeyManager(String alias, X509ExtendedKeyManager delegate)
alias
- The hard coded server alias which will *always* be returned by this key manager.delegate
- The delegate that will handle all other key manager methods.public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
public String chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine)
chooseEngineServerAlias
in class X509ExtendedKeyManager
public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine)
chooseEngineClientAlias
in class X509ExtendedKeyManager
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
public X509Certificate[] getCertificateChain(String alias)
public PrivateKey getPrivateKey(String alias)
Copyright © 2015–2024 Frank Stock. All rights reserved.