Class OpenShiftOAuthInterceptor
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.TokenRefreshInterceptor
-
- io.fabric8.openshift.client.internal.OpenShiftOAuthInterceptor
-
- All Implemented Interfaces:
Interceptor
public class OpenShiftOAuthInterceptor extends TokenRefreshInterceptor
Controls openshift authentication. It will be based upon an oauth token that can either come from a "login" or from the config / token provider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.http.Interceptor
Interceptor.RequestTags
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.client.utils.TokenRefreshInterceptor
config, NAME
-
-
Constructor Summary
Constructors Constructor Description OpenShiftOAuthInterceptor(HttpClient client, Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanshouldFail(HttpResponse<?> response)protected booleanuseBasicAuth()protected booleanuseRemoteRefresh(Config newestConfig)-
Methods inherited from class io.fabric8.kubernetes.client.utils.TokenRefreshInterceptor
afterFailure, before, isBasicAuth
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.http.Interceptor
after, afterConnectionFailure, afterFailure, consumer
-
-
-
-
Constructor Detail
-
OpenShiftOAuthInterceptor
public OpenShiftOAuthInterceptor(HttpClient client, Config config)
-
-
Method Detail
-
useBasicAuth
protected boolean useBasicAuth()
- Overrides:
useBasicAuthin classTokenRefreshInterceptor
-
useRemoteRefresh
protected boolean useRemoteRefresh(Config newestConfig)
- Overrides:
useRemoteRefreshin classTokenRefreshInterceptor
-
shouldFail
protected boolean shouldFail(HttpResponse<?> response)
- Overrides:
shouldFailin classTokenRefreshInterceptor
-
-