Package org.apache.hc.client5.http.impl
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultAuthenticationStrategy
private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselect
(ChallengeType challengeType, Map<String, AuthChallenge> challenges, org.apache.hc.core5.http.protocol.HttpContext context) Returns an list ofAuthScheme
s to handle the givenAuthChallenge
s in their order of preference.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
INSTANCE
-
DEFAULT_SCHEME_PRIORITY
-
-
Constructor Details
-
DefaultAuthenticationStrategy
public DefaultAuthenticationStrategy()
-
-
Method Details
-
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 ofAuthScheme
s to handle the givenAuthChallenge
s in their order of preference.- Specified by:
select
in interfaceAuthenticationStrategy
- 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.
-