Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- chooseServerAlias(String, Principal[], Socket)
- chooseEngineServerAlias(String, Principal[], SSLEngine)
- chooseClientAlias(String[], Principal[], Socket)
- getCertificateChain(String)
- getClientAliases(String, Principal[])
- getServerAliases(String, Principal[])
- getPrivateKey(String)
- chooseEngineClientAlias(String[], Principal[], SSLEngine)
Class JSSEKeyManager
java.lang.Object
javax.net.ssl.X509ExtendedKeyManager
org.apache.tomcat.util.net.jsse.JSSEKeyManager
- All Implemented Interfaces:
KeyManager
,X509KeyManager
X509KeyManager 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias
(String[] keyType, Principal[] issuers, Socket socket) chooseEngineClientAlias
(String[] keyType, Principal[] issuers, SSLEngine engine) chooseEngineServerAlias
(String keyType, Principal[] issuers, 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.chooseServerAlias
(String keyType, Principal[] issuers, 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.getCertificateChain
(String alias) String[]
getClientAliases
(String keyType, Principal[] issuers) getPrivateKey
(String alias) String[]
getServerAliases
(String keyType, Principal[] issuers)
-
Constructor Details
-
Method Details
-
chooseServerAlias
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. -
chooseEngineServerAlias
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:
chooseEngineServerAlias
in classX509ExtendedKeyManager
-
chooseClientAlias
-
getCertificateChain
-
getClientAliases
-
getServerAliases
-
getPrivateKey
-
chooseEngineClientAlias
- Overrides:
chooseEngineClientAlias
in classX509ExtendedKeyManager
-