Package com.helixframework.okhttp.oauth
Class ClientCredentialsOAuthInterceptor
java.lang.Object
com.helixframework.okhttp.oauth.ClientCredentialsOAuthInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that ensures a valid OAuth token is set on downstream requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating new instances ofClientCredentialsOAuthInterceptor.Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forClientCredentialsOAuthInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Method Details
-
builder
Creates a builder forClientCredentialsOAuthInterceptor.- Returns:
- a
ClientCredentialsOAuthInterceptor.Builder
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-