public class BearTokenFileAuthProvider extends BearTokenAuthProvider
Modifier and Type | Field and Description |
---|---|
static double |
EXPIRED_FACTOR |
token
Constructor and Description |
---|
BearTokenFileAuthProvider(String tokenFilePath) |
BearTokenFileAuthProvider(String tokenFilePath,
Long expiresInMills) |
Modifier and Type | Method and Description |
---|---|
Optional<Long> |
expiresAtMillis() |
Optional<Long> |
expiresInMills() |
boolean |
keepRefreshed() |
boolean |
refresh() |
boolean |
supportRefresh() |
boolean |
willSoonExpire() |
authHeader, token
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public static final double EXPIRED_FACTOR
public BearTokenFileAuthProvider(String tokenFilePath)
public boolean refresh()
refresh
in interface AuthProvider
refresh
in class BearTokenAuthProvider
public boolean supportRefresh()
public boolean keepRefreshed()
public boolean willSoonExpire()
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.