Package com.helger.httpclient.security
Class PrivateKeyStrategyFromAliasCaseInsensitive
java.lang.Object
com.helger.httpclient.security.PrivateKeyStrategyFromAliasCaseInsensitive
- All Implemented Interfaces:
org.apache.hc.core5.ssl.PrivateKeyStrategy
public class PrivateKeyStrategyFromAliasCaseInsensitive
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 insensitive (so that the expected alias
ABC matches the keystore alias Abc).- 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 Stringfinal booleanfinal voidsetWarnOnCaseDifference(boolean bWarnOnCaseDifference)
-
Constructor Details
-
PrivateKeyStrategyFromAliasCaseInsensitive
-
-
Method Details
-
getExpectedAlias
- Returns:
- The name of the expected alias as provided in the constructor.
Never
null.
-
isWarnOnCaseDifference
public final boolean isWarnOnCaseDifference() -
setWarnOnCaseDifference
public final void setWarnOnCaseDifference(boolean bWarnOnCaseDifference) -
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
-