public interface ContextAwareAuthScheme extends AuthScheme
HttpContext
in order to
generate an authorization string.
TODO: Fix AuthScheme interface in the next major versionModifier and Type | Method and Description |
---|---|
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Produces an authorization string for the given set of
Credentials . |
authenticate, getParameter, getRealm, getSchemeName, isComplete, isConnectionBased, processChallenge
org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
Credentials
.credentials
- The set of credentials to be used for athenticationrequest
- The request being authenticatedcontext
- HTTP contextAuthenticationException
- if authorization string cannot
be generated due to an authentication failureCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.