Package org.apache.tomcat.util.net.jsse
Class JSSEKeyManager
- java.lang.Object
- 
- javax.net.ssl.X509ExtendedKeyManager
- 
- org.apache.tomcat.util.net.jsse.JSSEKeyManager
 
 
- 
- All Implemented Interfaces:
- javax.net.ssl.KeyManager,- javax.net.ssl.X509KeyManager
 
 public final class JSSEKeyManager extends javax.net.ssl.X509ExtendedKeyManagerX509KeyManager which allows selection of a specific key pair and certificate chain (identified by their keystore alias name) to be used by the server to authenticate itself to SSL clients.- Author:
- Jan Luehe
 
- 
- 
Constructor SummaryConstructors Constructor Description JSSEKeyManager(javax.net.ssl.X509KeyManager mgr, java.lang.String serverKeyAlias)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringchooseClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, java.net.Socket socket)java.lang.StringchooseEngineClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, javax.net.ssl.SSLEngine engine)java.lang.StringchooseEngineServerAlias(java.lang.String keyType, java.security.Principal[] issuers, javax.net.ssl.SSLEngine engine)Returns the server key alias that was provided in the constructor or the result fromX509ExtendedKeyManager.chooseEngineServerAlias(String, Principal[], SSLEngine)for the delegate if no alias is specified.java.lang.StringchooseServerAlias(java.lang.String keyType, java.security.Principal[] issuers, java.net.Socket socket)Returns the server key alias that was provided in the constructor or the result fromX509KeyManager.chooseServerAlias(String, Principal[], Socket)for the delegate if no alias is specified.java.security.cert.X509Certificate[]getCertificateChain(java.lang.String alias)java.lang.String[]getClientAliases(java.lang.String keyType, java.security.Principal[] issuers)java.security.PrivateKeygetPrivateKey(java.lang.String alias)java.lang.String[]getServerAliases(java.lang.String keyType, java.security.Principal[] issuers)
 
- 
- 
- 
Method Detail- 
chooseServerAliaspublic java.lang.String chooseServerAlias(java.lang.String keyType, java.security.Principal[] issuers, java.net.Socket socket)Returns the server key alias that was provided in the constructor or the result fromX509KeyManager.chooseServerAlias(String, Principal[], Socket)for the delegate if no alias is specified.
 - 
chooseEngineServerAliaspublic java.lang.String chooseEngineServerAlias(java.lang.String keyType, java.security.Principal[] issuers, javax.net.ssl.SSLEngine engine)Returns the server key alias that was provided in the constructor or the result fromX509ExtendedKeyManager.chooseEngineServerAlias(String, Principal[], SSLEngine)for the delegate if no alias is specified.- Overrides:
- chooseEngineServerAliasin class- javax.net.ssl.X509ExtendedKeyManager
 
 - 
chooseClientAliaspublic java.lang.String chooseClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, java.net.Socket socket)
 - 
getCertificateChainpublic java.security.cert.X509Certificate[] getCertificateChain(java.lang.String alias) 
 - 
getClientAliasespublic java.lang.String[] getClientAliases(java.lang.String keyType, java.security.Principal[] issuers)
 - 
getServerAliasespublic java.lang.String[] getServerAliases(java.lang.String keyType, java.security.Principal[] issuers)
 - 
getPrivateKeypublic java.security.PrivateKey getPrivateKey(java.lang.String alias) 
 - 
chooseEngineClientAliaspublic java.lang.String chooseEngineClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, javax.net.ssl.SSLEngine engine)- Overrides:
- chooseEngineClientAliasin class- javax.net.ssl.X509ExtendedKeyManager
 
 
- 
 
-