Class X509AliasKeyManager
java.lang.Object
javax.net.ssl.X509ExtendedKeyManager
org.apache.qpid.protonj2.client.transport.X509AliasKeyManager
- All Implemented Interfaces:
KeyManager
,X509KeyManager
An X509ExtendedKeyManager wrapper which always chooses and only
returns the given alias, and defers retrieval to the delegate
key manager.
-
Constructor Summary
ConstructorDescriptionX509AliasKeyManager
(String alias, X509ExtendedKeyManager delegate) Creates a new alias manager with the provided configuration -
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) chooseServerAlias
(String keyType, Principal[] issuers, Socket socket) getCertificateChain
(String alias) String[]
getClientAliases
(String keyType, Principal[] issuers) getPrivateKey
(String alias) String[]
getServerAliases
(String keyType, Principal[] issuers)
-
Constructor Details
-
X509AliasKeyManager
public X509AliasKeyManager(String alias, X509ExtendedKeyManager delegate) throws IllegalArgumentException Creates a new alias manager with the provided configuration- Parameters:
alias
- The alias value to be used.delegate
- A delegate that will be used by this manager instance.- Throws:
IllegalArgumentException
- if no alias is provided for this manager.
-
-
Method Details
-
chooseClientAlias
-
chooseServerAlias
-
getCertificateChain
-
getClientAliases
-
getPrivateKey
-
getServerAliases
-
chooseEngineClientAlias
- Overrides:
chooseEngineClientAlias
in classX509ExtendedKeyManager
-
chooseEngineServerAlias
- Overrides:
chooseEngineServerAlias
in classX509ExtendedKeyManager
-