Class Secret

    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
      • priority

        protected int priority
      • token

        protected String token
      • user

        protected User user
    • Constructor Detail

      • Secret

        protected Secret​(int priority,
                         String token)
    • Method Detail

      • check

        protected void check​(String token)
                      throws org.gcube.common.authorization.library.exception.AuthorizationException
        Throws:
        org.gcube.common.authorization.library.exception.AuthorizationException
      • getToken

        public String getToken()
      • getClientInfo

        public abstract org.gcube.common.authorization.library.provider.ClientInfo getClientInfo()
                                                                                          throws Exception
        Throws:
        Exception
      • getCaller

        public abstract org.gcube.common.authorization.library.utils.Caller getCaller()
                                                                               throws Exception
        Throws:
        Exception
      • setAuthorizationProvider

        public void setAuthorizationProvider()
                                      throws Exception
        Throws:
        Exception
      • getHTTPAuthorizationHeaders

        public abstract Map<String,​String> getHTTPAuthorizationHeaders()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isRefreshable

        public abstract boolean isRefreshable()
                                       throws Exception
        Throws:
        Exception
      • getUser

        public abstract User getUser()