Package io.iworkflow.gen.api.auth
Class HttpBasicAuth
java.lang.Object
io.iworkflow.gen.api.auth.HttpBasicAuth
- All Implemented Interfaces:
feign.RequestInterceptor
An interceptor that adds the request header needed to use HTTP basic authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(feign.RequestTemplate template) void
setCredentials
(String username, String password) void
setPassword
(String password) void
setUsername
(String username)
-
Constructor Details
-
HttpBasicAuth
public HttpBasicAuth()
-
-
Method Details
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
setCredentials
-
apply
public void apply(feign.RequestTemplate template) - Specified by:
apply
in interfacefeign.RequestInterceptor
-