Package | Description |
---|---|
org.apache.hc.client5.http |
Client component APIs common to all client transports
such as connection route information and resolution
as well as common HTTP method definitions and
exception classes.
|
org.apache.hc.client5.http.auth |
Client HTTP authentication APIs.
|
org.apache.hc.client5.http.impl | |
org.apache.hc.client5.http.impl.auth |
Standard and common HTTP authentication schemes.
|
org.apache.hc.client5.http.protocol |
HTTP protocol interceptors that enable advanced functionality
such as HTTP state management and authentication state caching.
|
Modifier and Type | Method and Description |
---|---|
List<AuthScheme> |
AuthenticationStrategy.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. |
Modifier and Type | Method and Description |
---|---|
ContextBuilder |
ContextBuilder.preemptiveAuth(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme) |
AbstractClientContextBuilder<T> |
AbstractClientContextBuilder.preemptiveAuth(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme) |
Modifier and Type | Method and Description |
---|---|
AuthScheme |
AuthSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context)
Creates an instance of
AuthScheme . |
AuthScheme |
AuthCache.get(org.apache.hc.core5.http.HttpHost host)
Returns the authentication state with the given authentication scope from the cache
if available.
|
default AuthScheme |
AuthCache.get(org.apache.hc.core5.http.HttpHost host,
String pathPrefix)
Returns the authentication state with the given authentication scope from the cache
if available.
|
AuthScheme |
AuthExchange.getAuthScheme()
Returns actual
AuthScheme . |
Modifier and Type | Method and Description |
---|---|
Queue<AuthScheme> |
AuthExchange.getAuthOptions()
Returns available auth options.
|
Modifier and Type | Method and Description |
---|---|
void |
AuthCache.put(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme)
Stores the authentication state with the given authentication scope in the cache.
|
default void |
AuthCache.put(org.apache.hc.core5.http.HttpHost host,
String pathPrefix,
AuthScheme authScheme)
Stores the authentication state with the given authentication scope in the cache.
|
void |
AuthExchange.select(AuthScheme authScheme)
Resets the auth state with
AuthScheme and clears auth options. |
Modifier and Type | Method and Description |
---|---|
void |
AuthExchange.setOptions(Queue<AuthScheme> authOptions)
Updates the auth state with a queue of auth options.
|
Modifier and Type | Method and Description |
---|---|
List<AuthScheme> |
DefaultAuthenticationStrategy.select(ChallengeType challengeType,
Map<String,AuthChallenge> challenges,
org.apache.hc.core5.http.protocol.HttpContext context) |
Modifier and Type | Class and Description |
---|---|
class |
BasicScheme
Basic authentication scheme.
|
class |
BearerScheme
Bearer authentication scheme.
|
class |
DigestScheme
Digest authentication scheme.
|
class |
GGSSchemeBase
Deprecated.
Do not use. The GGS based experimental authentication schemes are no longer
supported. Consider using Basic or Bearer authentication with TLS instead.
|
class |
KerberosScheme
Deprecated.
Do not use. The GGS based experimental authentication schemes are no longer
supported. Consider using Basic or Bearer authentication with TLS instead.
|
class |
NTLMScheme
Deprecated.
Do not use. the NTLM authentication scheme is no longer supported.
Consider using Basic or Bearer authentication with TLS instead.
|
class |
SPNegoScheme
Deprecated.
Do not use. The GGS based experimental authentication schemes are no longer
supported. Consider using Basic or Bearer authentication with TLS instead.
|
Modifier and Type | Method and Description |
---|---|
AuthScheme |
BasicSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context) |
AuthScheme |
KerberosSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
|
AuthScheme |
SPNegoSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
|
AuthScheme |
DigestSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context) |
AuthScheme |
BearerSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context) |
AuthScheme |
NTLMSchemeFactory.create(org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
|
AuthScheme |
BasicAuthCache.get(org.apache.hc.core5.http.HttpHost host) |
AuthScheme |
BasicAuthCache.get(org.apache.hc.core5.http.HttpHost host,
String pathPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
BasicAuthCache.put(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme) |
void |
BasicAuthCache.put(org.apache.hc.core5.http.HttpHost host,
String pathPrefix,
AuthScheme authScheme) |
Modifier and Type | Method and Description |
---|---|
void |
HttpClientContext.resetAuthExchange(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme) |
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.