@Contract(threading=STATELESS) public class DefaultAuthenticationStrategy extends Object implements AuthenticationStrategy
AuthenticationStrategy
Modifier and Type | Field and Description |
---|---|
static DefaultAuthenticationStrategy |
INSTANCE |
Constructor and Description |
---|
DefaultAuthenticationStrategy() |
Modifier and Type | Method and Description |
---|---|
List<AuthScheme> |
select(ChallengeType challengeType,
Map<String,AuthChallenge> challenges,
org.apache.hc.core5.http.protocol.HttpContext context)
Returns an list of
AuthScheme s to handle the given AuthChallenge s
in their order of preference. |
public static final DefaultAuthenticationStrategy INSTANCE
public List<AuthScheme> select(ChallengeType challengeType, Map<String,AuthChallenge> challenges, org.apache.hc.core5.http.protocol.HttpContext context)
AuthenticationStrategy
AuthScheme
s to handle the given AuthChallenge
s
in their order of preference.select
in interface AuthenticationStrategy
challengeType
- challenge type.challenges
- map of challenges keyed by lowercase auth scheme names.context
- HTTP context.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.