Package org.apache.pinot.common.auth
Class UrlAuthProvider
- java.lang.Object
-
- org.apache.pinot.common.auth.UrlAuthProvider
-
- All Implemented Interfaces:
AuthProvider
public class UrlAuthProvider extends Object implements AuthProvider
Auth provider with dynamic loading support, typically used for rotating tokens such as those injected by kubernetes. UrlAuthProvider will re-read the source on every invocation, so beware of long round-trip times if the source is remote.
-
-
Constructor Summary
Constructors Constructor Description UrlAuthProvider(String url)UrlAuthProvider(AuthConfig authConfig)
-
-
-
Field Detail
-
HEADER
public static final String HEADER
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
_header
protected final String _header
-
_prefix
protected final String _prefix
-
_url
protected final URL _url
-
-
Constructor Detail
-
UrlAuthProvider
public UrlAuthProvider(String url)
-
UrlAuthProvider
public UrlAuthProvider(AuthConfig authConfig)
-
-
Method Detail
-
getRequestHeaders
public Map<String,Object> getRequestHeaders()
- Specified by:
getRequestHeadersin interfaceAuthProvider
-
getTaskToken
public String getTaskToken()
- Specified by:
getTaskTokenin interfaceAuthProvider
-
-