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 Details

    • PrivateKeyStrategyFromAliasCaseSensitive

      public PrivateKeyStrategyFromAliasCaseSensitive(@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.
    • 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