Class TokenStreamProvider
java.lang.Object
org.jgroups.protocols.kubernetes.stream.BaseStreamProvider
org.jgroups.protocols.kubernetes.stream.TokenStreamProvider
- All Implemented Interfaces:
StreamProvider
Copied and adapted version from openshift-ping repository. A warning message is issued if ca cert file is undefined or not
found rather than always using insecure stream or being mandatory and eventually failing.
Token refresh is modeled after approach in io.fabric8.kubernetes.client.utils.TokenRefreshInterceptor.
- Author:
- Ricardo Martinelli, Radoslav Husar
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopenStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) Methods inherited from class org.jgroups.protocols.kubernetes.stream.BaseStreamProvider
openConnection
-
Field Details
-
AUTHORIZATION
- See Also:
-
-
Constructor Details
-
TokenStreamProvider
-
-
Method Details
-
openStream
public InputStream openStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) throws IOException- Throws:
IOException
-