Class AccessTokenSecret
- java.lang.Object
-
- org.gcube.common.security.secrets.Secret
-
- org.gcube.common.security.secrets.AccessTokenSecret
-
public class AccessTokenSecret extends org.gcube.common.security.secrets.Secret- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaninitialisedstatic longTOLERANCEThe interval of time expressed in milliseconds used as guard to refresh the token before that it expires .
-
Constructor Summary
Constructors Constructor Description AccessTokenSecret(String accessToken, String context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContext()Map<String,String>getHTTPAuthorizationHeaders()org.gcube.common.security.OwnergetOwner()booleanisExpired()
-
-
-
Method Detail
-
getOwner
public org.gcube.common.security.Owner getOwner()
- Specified by:
getOwnerin classorg.gcube.common.security.secrets.Secret
-
getContext
public String getContext()
- Specified by:
getContextin classorg.gcube.common.security.secrets.Secret
-
getHTTPAuthorizationHeaders
public Map<String,String> getHTTPAuthorizationHeaders()
- Specified by:
getHTTPAuthorizationHeadersin classorg.gcube.common.security.secrets.Secret
-
isExpired
public boolean isExpired()
- Specified by:
isExpiredin classorg.gcube.common.security.secrets.Secret
-
-