Class AccessTokenSecret


  • public class AccessTokenSecret
    extends org.gcube.common.security.secrets.Secret
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Detail

      • TOLERANCE

        public static final long TOLERANCE
        The interval of time expressed in milliseconds used as guard to refresh the token before that it expires . TimeUnit has been used to in place of just using the number to have a clearer code
      • initialised

        protected boolean initialised
    • Constructor Detail

      • AccessTokenSecret

        public AccessTokenSecret​(String accessToken,
                                 String context)
    • Method Detail

      • getOwner

        public org.gcube.common.security.Owner getOwner()
        Specified by:
        getOwner in class org.gcube.common.security.secrets.Secret
      • getContext

        public String getContext()
        Specified by:
        getContext in class org.gcube.common.security.secrets.Secret
      • getHTTPAuthorizationHeaders

        public Map<String,​String> getHTTPAuthorizationHeaders()
        Specified by:
        getHTTPAuthorizationHeaders in class org.gcube.common.security.secrets.Secret
      • isExpired

        public boolean isExpired()
        Specified by:
        isExpired in class org.gcube.common.security.secrets.Secret