Class HttpBearerAuth
- java.lang.Object
-
- org.bonitasoft.web.client.invoker.auth.HttpBearerAuth
-
- All Implemented Interfaces:
feign.RequestInterceptor
public class HttpBearerAuth extends Object implements feign.RequestInterceptor
An interceptor that adds the request header needed to use HTTP bearer authentication.
-
-
Constructor Summary
Constructors Constructor Description HttpBearerAuth(String scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(feign.RequestTemplate template)StringgetBearerToken()Gets the token, which together with the scheme, will be sent as the value of the Authorization header.voidsetBearerToken(String bearerToken)Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
-
-
-
Constructor Detail
-
HttpBearerAuth
public HttpBearerAuth(String scheme)
-
-
Method Detail
-
getBearerToken
public String getBearerToken()
Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
-
setBearerToken
public void setBearerToken(String bearerToken)
Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
-
apply
public void apply(feign.RequestTemplate template)
- Specified by:
applyin interfacefeign.RequestInterceptor
-
-