public class BearerAuthSupplier extends AbstractAuthSupplier implements HttpAuthSupplier
Constructor and Description |
---|
BearerAuthSupplier() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorization(AuthorizationPolicy authPolicy,
URI currentURI,
Message message,
String fullHeader)
The HTTPConduit makes a call to this method to obtain
an Authentication token for http authentication.
|
Consumer |
getConsumer() |
boolean |
requiresRequestCaching()
If the supplier requires the request to be cached to be resent, return true
|
void |
setAccessTokenServiceUri(String uri) |
void |
setConsumer(Consumer consumer) |
void |
setRefreshEarly(boolean refreshEarly) |
void |
setRefreshToken(String refreshToken) |
createAuthorizationHeader, getClientAccessToken, setAccessToken, setClientAccessToken
public boolean requiresRequestCaching()
HttpAuthSupplier
requiresRequestCaching
in interface HttpAuthSupplier
public String getAuthorization(AuthorizationPolicy authPolicy, URI currentURI, Message message, String fullHeader)
HttpAuthSupplier
getAuthorization
in interface HttpAuthSupplier
authPolicy
- credentials for the authenticationmessage
- The CXF MessagefullHeader
- The full WWW-Authenticate header or null if preemptive authpublic void setRefreshToken(String refreshToken)
public void setAccessTokenServiceUri(String uri)
public Consumer getConsumer()
public void setConsumer(Consumer consumer)
public void setRefreshEarly(boolean refreshEarly)
Apache CXF