Class BearerAuthSupplier
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.client.AbstractAuthSupplier
-
- org.apache.cxf.rs.security.oauth2.client.BearerAuthSupplier
-
- All Implemented Interfaces:
HttpAuthSupplier
public class BearerAuthSupplier extends AbstractAuthSupplier implements HttpAuthSupplier
-
-
Constructor Summary
Constructors Constructor Description BearerAuthSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthorization(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.ConsumergetConsumer()booleanrequiresRequestCaching()If the supplier requires the request to be cached to be resent, return truevoidsetAccessTokenServiceUri(String uri)voidsetConsumer(Consumer consumer)voidsetRefreshEarly(boolean refreshEarly)voidsetRefreshToken(String refreshToken)-
Methods inherited from class org.apache.cxf.rs.security.oauth2.client.AbstractAuthSupplier
createAuthorizationHeader, getClientAccessToken, setAccessToken, setClientAccessToken
-
-
-
-
Method Detail
-
requiresRequestCaching
public boolean requiresRequestCaching()
Description copied from interface:HttpAuthSupplierIf the supplier requires the request to be cached to be resent, return true- Specified by:
requiresRequestCachingin interfaceHttpAuthSupplier
-
getAuthorization
public String getAuthorization(org.apache.cxf.configuration.security.AuthorizationPolicy authPolicy, URI currentURI, Message message, String fullHeader)
Description copied from interface:HttpAuthSupplierThe HTTPConduit makes a call to this method to obtain an Authentication token for http authentication.- Specified by:
getAuthorizationin interfaceHttpAuthSupplier- Parameters:
authPolicy- credentials for the authenticationcurrentURI- The URI we want to connect tomessage- The CXF MessagefullHeader- The full WWW-Authenticate header or null if preemptive auth- Returns:
- token for Authenticate string or null if authentication is not possible
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
setAccessTokenServiceUri
public void setAccessTokenServiceUri(String uri)
-
getConsumer
public Consumer getConsumer()
-
setConsumer
public void setConsumer(Consumer consumer)
-
setRefreshEarly
public void setRefreshEarly(boolean refreshEarly)
-
-