public final class CachedSASToken extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
CachedSASToken()
Create instance with default minimum expiration.
|
CachedSASToken(long minExpirationInSeconds)
Create instance with specified minimum expiration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get()
Gets the token if still valid.
|
void |
update(String token)
Updates the cached SAS token and expiry.
|
public CachedSASToken()
public CachedSASToken(long minExpirationInSeconds)
minExpirationInSeconds - public void update(String token)
token - an Azure Storage SAS tokenpublic String get()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.