@Contract(threading=STATELESS)
public interface AuthenticationStrategy
Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
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. |
List<AuthScheme> select(ChallengeType challengeType, Map<String,AuthChallenge> challenges, org.apache.hc.core5.http.protocol.HttpContext context)
AuthScheme
s to handle the given AuthChallenge
s
in their order of preference.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.