Class DefaultAuthenticationStrategy

java.lang.Object
org.apache.hc.client5.http.impl.DefaultAuthenticationStrategy
All Implemented Interfaces:
AuthenticationStrategy

@Contract(threading=STATELESS) public class DefaultAuthenticationStrategy extends Object implements AuthenticationStrategy
Default implementation of AuthenticationStrategy
Since:
5.0
  • Field Details

  • Constructor Details

    • DefaultAuthenticationStrategy

      public DefaultAuthenticationStrategy()
  • Method Details

    • getSchemePriority

      protected List<String> getSchemePriority()
    • select

      public List<AuthScheme> select(ChallengeType challengeType, Map<String, AuthChallenge> challenges, org.apache.hc.core5.http.protocol.HttpContext context)
      Description copied from interface: AuthenticationStrategy
      Returns an list of AuthSchemes to handle the given AuthChallenges in their order of preference.
      Specified by:
      select in interface AuthenticationStrategy
      Parameters:
      challengeType - challenge type.
      challenges - map of challenges keyed by lowercase auth scheme names.
      context - HTTP context.
      Returns:
      authentication auth schemes that can be used for authentication. Can be empty.