Package org.apache.jmeter.rmi
Class AliasKeyManager
java.lang.Object
org.apache.jmeter.rmi.AliasKeyManager
- All Implemented Interfaces:
KeyManager,X509KeyManager
Implementation of
KeyManager that allows using an alias- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) 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) static AliasKeyManager[]wrap(KeyManager[] kms, String alias) Wraps the first foundX509KeyManagerthat has a private key for the givenaliasas anAliasKeyManagerand returns it as the only element in a newly created array.
-
Constructor Details
-
AliasKeyManager
-
-
Method Details
-
wrap
Wraps the first foundX509KeyManagerthat has a private key for the givenaliasas anAliasKeyManagerand returns it as the only element in a newly created array.- Parameters:
kms- the KeyManagers to be searched for thealiasalias- the name to be searched for- Returns:
- an array with one
AliasKeyManagerthat has a private key namedalias - Throws:
IllegalArgumentException- if no valid KeyManager is found
-
chooseClientAlias
- Specified by:
chooseClientAliasin interfaceX509KeyManager
-
chooseServerAlias
- Specified by:
chooseServerAliasin interfaceX509KeyManager
-
getCertificateChain
- Specified by:
getCertificateChainin interfaceX509KeyManager
-
getClientAliases
- Specified by:
getClientAliasesin interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKeyin interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliasesin interfaceX509KeyManager
-