public class CodeAuthSupplier extends Object implements HttpAuthSupplier
Constructor and Description |
---|
CodeAuthSupplier() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy,
URI currentURI,
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
|
void |
setAccessTokenServiceUri(String uri) |
void |
setCode(String code) |
void |
setConsumer(Consumer consumer) |
void |
setRefreshEarly(boolean refreshEarly) |
public boolean requiresRequestCaching()
HttpAuthSupplier
requiresRequestCaching
in interface HttpAuthSupplier
public String getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy, URI currentURI, Message message, String fullHeader)
HttpAuthSupplier
getAuthorization
in interface HttpAuthSupplier
authPolicy
- credentials for the authenticationcurrentURI
- The URI we want to connect tomessage
- The CXF MessagefullHeader
- The full WWW-Authenticate header or null if preemptive authpublic void setCode(String code)
public void setRefreshEarly(boolean refreshEarly)
public void setAccessTokenServiceUri(String uri)
public void setConsumer(Consumer consumer)
Apache CXF