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 java.lang.Object implements AuthenticationStrategy
Default implementation ofAuthenticationStrategy
- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.lang.String>
DEFAULT_SCHEME_PRIORITY
static DefaultAuthenticationStrategy
INSTANCE
private static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description DefaultAuthenticationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AuthScheme>
select(ChallengeType challengeType, java.util.Map<java.lang.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 Detail
-
LOG
private static final org.slf4j.Logger LOG
-
INSTANCE
public static final DefaultAuthenticationStrategy INSTANCE
-
DEFAULT_SCHEME_PRIORITY
private static final java.util.List<java.lang.String> DEFAULT_SCHEME_PRIORITY
-
-
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 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.
-
-