public class BearTokenAuthProvider extends Object implements AuthProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION_HEADER_KEY |
protected String |
token |
| Constructor and Description |
|---|
BearTokenAuthProvider(String token) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
header(Map<String,String> baseHeader,
RESTAuthParameter restAuthParameter) |
boolean |
refresh() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpiresAtMillis, keepRefreshed, tokenRefreshInMills, willSoonExpirepublic static final String AUTHORIZATION_HEADER_KEY
protected String token
public BearTokenAuthProvider(String token)
public Map<String,String> header(Map<String,String> baseHeader, RESTAuthParameter restAuthParameter)
header in interface AuthProviderpublic boolean refresh()
refresh in interface AuthProviderCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.