Package com.helger.httpclient.security
Class PrivateKeyStrategyFromAliasCaseSensitive
java.lang.Object
com.helger.httpclient.security.PrivateKeyStrategyFromAliasCaseSensitive
- All Implemented Interfaces:
org.apache.hc.core5.ssl.PrivateKeyStrategy
public class PrivateKeyStrategyFromAliasCaseSensitive
extends Object
implements org.apache.hc.core5.ssl.PrivateKeyStrategy
A private key strategy that select the key details from the provided alias.
The matching of the alias is case sensitive.
- Since:
- 9.1.9
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseAlias(Map<String, org.apache.hc.core5.ssl.PrivateKeyDetails> aAliases, SSLParameters aSSLParameters) final String
-
Constructor Details
-
PrivateKeyStrategyFromAliasCaseSensitive
-
-
Method Details
-
getExpectedAlias
- Returns:
- The name of the expected alias as provided in the constructor.
Never
null.
-
chooseAlias
@Nullable public String chooseAlias(@Nonnull Map<String, org.apache.hc.core5.ssl.PrivateKeyDetails> aAliases, @Nullable SSLParameters aSSLParameters) - Specified by:
chooseAliasin interfaceorg.apache.hc.core5.ssl.PrivateKeyStrategy
-