Package io.iworkflow.gen.api.auth
Class HttpBearerAuth
java.lang.Object
io.iworkflow.gen.api.auth.HttpBearerAuth
- All Implemented Interfaces:
feign.RequestInterceptor
An interceptor that adds the request header needed to use HTTP bearer authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(feign.RequestTemplate template) Gets the token, which together with the scheme, will be sent as the value of the Authorization header.void
setBearerToken
(String bearerToken) Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
-
Constructor Details
-
HttpBearerAuth
-
-
Method Details
-
getBearerToken
Gets the token, which together with the scheme, will be sent as the value of the Authorization header. -
setBearerToken
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:
apply
in interfacefeign.RequestInterceptor
-