|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsslutils.sslcontext.keymanagers.FixedServerAliasKeyManager
public class FixedServerAliasKeyManager
This is an X509KeyManager that will always choose the server alias name it has been constructed with.
Nested Class Summary | |
---|---|
static class |
FixedServerAliasKeyManager.Wrapper
Wrapper factory class that wraps existing X509KeyManagers into FixedServerAliasKeyManager, with the alias passed to the constructor. |
Constructor Summary | |
---|---|
FixedServerAliasKeyManager(X509KeyManager keyManager,
String alias)
Creates a new instance from an existing X509KeyManager. |
Method Summary | |
---|---|
String |
chooseClientAlias(String[] keyType,
Principal[] issuers,
Socket socket)
Relays the call to the wrapped X509KeyManager. |
String |
chooseServerAlias(String keyType,
Principal[] issuers,
Socket socket)
Returns the alias this instance has been constructed with, regardless of any other parameters. |
X509Certificate[] |
getCertificateChain(String alias)
Relays the call to the wrapped X509KeyManager. |
String[] |
getClientAliases(String keyType,
Principal[] issuers)
Relays the call to the wrapped X509KeyManager. |
PrivateKey |
getPrivateKey(String alias)
Relays the call to the wrapped X509KeyManager. |
String[] |
getServerAliases(String keyType,
Principal[] issuers)
Relays the call to the wrapped X509KeyManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedServerAliasKeyManager(X509KeyManager keyManager, String alias)
keyManager
- X509KeyManager to wrap.alias
- alias to use to choose a key for the server sockets.Method Detail |
---|
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
chooseClientAlias
in interface X509KeyManager
X509KeyManager.chooseClientAlias(java.lang.String[],
java.security.Principal[], java.net.Socket)
public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
chooseServerAlias
in interface X509KeyManager
X509KeyManager.chooseServerAlias(java.lang.String,
java.security.Principal[], java.net.Socket)
public X509Certificate[] getCertificateChain(String alias)
getCertificateChain
in interface X509KeyManager
X509KeyManager.getCertificateChain(java.lang.String)
public String[] getClientAliases(String keyType, Principal[] issuers)
getClientAliases
in interface X509KeyManager
X509KeyManager.getClientAliases(java.lang.String,
java.security.Principal[])
public PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface X509KeyManager
X509KeyManager.getPrivateKey(java.lang.String)
public String[] getServerAliases(String keyType, Principal[] issuers)
getServerAliases
in interface X509KeyManager
X509KeyManager.getServerAliases(java.lang.String,
java.security.Principal[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |