public class OnDemadKeyManager extends X509ExtendedKeyManager
Constructor and Description |
---|
OnDemadKeyManager(String certfile,
String keyfile,
CallbackHandler cbh,
boolean defaultfile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket) |
String |
chooseEngineClientAlias(String[] keyType,
Principal[] issuers,
SSLEngine engine) |
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) |
void |
throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exeptions, therefore any
exception is stored in this.error and can be raised by this method
|
chooseEngineServerAlias
public OnDemadKeyManager(String certfile, String keyfile, CallbackHandler cbh, boolean defaultfile)
certfile
- keyfile
- cbh
- defaultfile
- public void throwKeyManagerException() throws SQLException
SQLException
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
public String chooseServerAlias(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 © 2013-2015 impossibl.com. All Rights Reserved.