Class DefaultAuthenticationStrategy

    • Field Detail

      • LOG

        private static final org.slf4j.Logger LOG
      • DEFAULT_SCHEME_PRIORITY

        private static final java.util.List<java.lang.String> DEFAULT_SCHEME_PRIORITY
    • Constructor Detail

      • DefaultAuthenticationStrategy

        public DefaultAuthenticationStrategy()
    • Method Detail

      • select

        public java.util.List<AuthScheme> select​(ChallengeType challengeType,
                                                 java.util.Map<java.lang.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.