Package com.epam.reportportal.service
Class OAuth2PasswordGrantAuthInterceptor
- java.lang.Object
-
- com.epam.reportportal.service.OAuth2PasswordGrantAuthInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public class OAuth2PasswordGrantAuthInterceptor extends java.lang.Object implements okhttp3.InterceptorOkHttp interceptor that handles OAuth 2.0 Password Grant authentication. This interceptor automatically obtains and refreshes access tokens using the OAuth 2.0 password grant flow.- See Also:
- OAuth 2.0 Password Grant
-
-
Constructor Summary
Constructors Constructor Description OAuth2PasswordGrantAuthInterceptor(ListenerParameters parameters)Creates a new OAuth 2.0 Password Grant interceptor.OAuth2PasswordGrantAuthInterceptor(okhttp3.OkHttpClient client, ListenerParameters parameters)Creates a new OAuth 2.0 Password Grant interceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
-
-
Constructor Detail
-
OAuth2PasswordGrantAuthInterceptor
public OAuth2PasswordGrantAuthInterceptor(@Nonnull okhttp3.OkHttpClient client, @Nonnull ListenerParameters parameters)Creates a new OAuth 2.0 Password Grant interceptor.- Parameters:
client- the HTTP client to useparameters- The listener parameters containing OAuth 2.0 and proxy configuration
-
OAuth2PasswordGrantAuthInterceptor
public OAuth2PasswordGrantAuthInterceptor(@Nonnull ListenerParameters parameters)Creates a new OAuth 2.0 Password Grant interceptor.- Parameters:
parameters- The listener parameters containing OAuth 2.0 and proxy configuration
-
-