public interface HttpAuthSupplier
A HTTPConduit keeps a reference to this HttpAuthSupplier for the life of the HTTPConduit, unless changed out by dynamic configuration. Therefore, an implementation of this HttpAuthSupplier may maintain state for subsequent calls.
For instance, an implementation may not provide a Authorization preemptively for a particular URL and decide to get the realm information from a 401 response in which the HTTPConduit will call getAuthorization for that URL. Then this implementation may provide the Authorization for this particular URL preemptively for subsequent calls to getAuthorization.
Modifier and Type | Method and Description |
---|---|
String |
getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy,
URI uri,
Message message,
String fullHeader)
The HTTPConduit makes a call to this method to obtain
an Authentication token for http authentication.
|
boolean |
requiresRequestCaching()
If the supplier requires the request to be cached to be resent, return true
|
boolean requiresRequestCaching()
String getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy, URI uri, Message message, String fullHeader)
authPolicy
- credentials for the authenticationuri
- The URI we want to connect tomessage
- The CXF MessagefullHeader
- The full WWW-Authenticate header or null if preemptive authApache CXF