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|
The HTTPConduit makes a call to this method to obtain an Authentication token for http authentication.
If the supplier requires the request to be cached to be resent, return true
String getAuthorization(AuthorizationPolicy authPolicy, URI url, Message message, String fullHeader)
authPolicy- credentials for the authentication
uri- The URI we want to connect to
message- The CXF Message
fullHeader- The full WWW-Authenticate header or null if preemptive auth