Class AbstractClientFactory

    • Field Detail

      • config

        protected org.gcube.idm.common.is.IsServerConfig config
        server configuration can be obtained from IS (fetchIsConfig) or created externally using the singleton pattern, it's retrieved from IS only for the first access, then kept in the singleton object
      • secret

        protected org.gcube.common.security.secrets.Secret secret
    • Constructor Detail

      • AbstractClientFactory

        public AbstractClientFactory()
    • Method Detail

      • getRuntimeResourceName

        public abstract String getRuntimeResourceName()
      • getCategory

        public abstract String getCategory()
      • getEndPointName

        public abstract String getEndPointName()
      • isRootService

        public abstract boolean isRootService()
      • getSecret

        public org.gcube.common.security.secrets.Secret getSecret()
      • setSecret

        public void setSecret​(org.gcube.common.security.secrets.Secret secret)
      • setConfig

        public void setConfig​(org.gcube.idm.common.is.IsServerConfig configuration)
        service configuration obtained from IS in the private constructor using the singleton pattern, it's retrieved from IS only for the first access, then kept in the singleton object
      • fetchIsConfig

        public org.gcube.idm.common.is.IsServerConfig fetchIsConfig()
                                                             throws jakarta.ws.rs.InternalServerErrorException
        Throws:
        jakarta.ws.rs.InternalServerErrorException
      • fetchIsConfig

        public org.gcube.idm.common.is.IsServerConfig fetchIsConfig​(org.gcube.common.security.secrets.Secret secret)
                                                             throws jakarta.ws.rs.InternalServerErrorException
        Throws:
        jakarta.ws.rs.InternalServerErrorException
      • getSecretForInfrastructure

        public static org.gcube.common.security.secrets.Secret getSecretForInfrastructure()
        Retrieve the secret from smartgear configuration
        Returns:
        Secret