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, wait
expiresAtMillis, keepRefreshed, tokenRefreshInMills, willSoonExpire
public 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 AuthProvider
public boolean refresh()
refresh
in interface AuthProvider
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.