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 SummaryConstructors
- 
Method SummaryModifier 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- 
wrapWraps 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 the- alias
- alias- 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 interface- X509KeyManager
 
- 
chooseServerAlias- Specified by:
- chooseServerAliasin interface- X509KeyManager
 
- 
getCertificateChain- Specified by:
- getCertificateChainin interface- X509KeyManager
 
- 
getClientAliases- Specified by:
- getClientAliasesin interface- X509KeyManager
 
- 
getPrivateKey- Specified by:
- getPrivateKeyin interface- X509KeyManager
 
- 
getServerAliases- Specified by:
- getServerAliasesin interface- X509KeyManager
 
 
-