|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpAuthSupplier
Supplies Authorization information to an HTTPConduit.
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.
Method Summary | |
---|---|
String |
getAuthorization(AuthorizationPolicy authPolicy,
URL url,
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 |
Method Detail |
---|
boolean requiresRequestCaching()
String getAuthorization(AuthorizationPolicy authPolicy, URL url, Message message, String fullHeader)
authPolicy
- credentials for the authenticationurl
- The URL we want to connect tomessage
- The CXF MessagefullHeader
- The full WWW-Authenticate header or null if preemptive auth
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |