@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,
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, 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.