public class AccessTokenSecret
extends org.gcube.common.security.secrets.Secret
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialised |
static long |
TOLERANCE
The interval of time expressed in milliseconds used as guard to refresh the token before that it expires .
|
| Constructor and Description |
|---|
AccessTokenSecret(String accessToken,
String context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContext() |
Map<String,String> |
getHTTPAuthorizationHeaders() |
org.gcube.common.security.Owner |
getOwner() |
boolean |
isExpired() |
public static final long TOLERANCE
protected boolean initialised
public org.gcube.common.security.Owner getOwner()
getOwner in class org.gcube.common.security.secrets.Secretpublic String getContext()
getContext in class org.gcube.common.security.secrets.Secretpublic Map<String,String> getHTTPAuthorizationHeaders()
getHTTPAuthorizationHeaders in class org.gcube.common.security.secrets.Secretpublic boolean isExpired()
isExpired in class org.gcube.common.security.secrets.SecretCopyright © 2023. All Rights Reserved.