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 Details

    • PrivateKeyStrategyFromAliasCaseInsensitive

      public PrivateKeyStrategyFromAliasCaseInsensitive(@Nonnull String sExpectedAlias)
  • Method Details

    • getExpectedAlias

      @Nonnull public final String 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:
      chooseAlias in interface org.apache.hc.core5.ssl.PrivateKeyStrategy