Class DownloaderAuthenticationKeycloakConfig

java.lang.Object
org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
org.gvsig.downloader.swing.scribejava.keycloak.DownloaderAuthenticationKeycloakConfig
All Implemented Interfaces:
Cloneable, org.gvsig.downloader.DownloaderAuthenticationConfig, org.gvsig.json.SupportFromJson, org.gvsig.json.SupportJson, org.gvsig.json.SupportToJson, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent, org.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>

public class DownloaderAuthenticationKeycloakConfig extends org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig implements org.gvsig.downloader.DownloaderAuthenticationConfig, org.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>
Author:
jjdelcerro
  • Constructor Details

    • DownloaderAuthenticationKeycloakConfig

      public DownloaderAuthenticationKeycloakConfig(DownloaderAuthenticationKeycloakFactory factory, String serviceUrl)
    • DownloaderAuthenticationKeycloakConfig

      public DownloaderAuthenticationKeycloakConfig()
  • Method Details

    • getFactory

      Specified by:
      getFactory in interface org.gvsig.downloader.DownloaderAuthenticationConfig
      Overrides:
      getFactory in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.gvsig.downloader.DownloaderAuthenticationConfig
      Overrides:
      getKey in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • getLocalPort

      public int getLocalPort()
    • getKeycloakBaseurl

      public String getKeycloakBaseurl()
    • getRealm

      public String getRealm()
    • getClientid

      public String getClientid()
    • getScope

      public String getScope()
    • setKeycloakBaseurl

      public void setKeycloakBaseurl(String keycloakBaseurl)
    • setLocalPort

      public void setLocalPort(int localPort)
    • setRealm

      public void setRealm(String realm)
    • setClientid

      public void setClientid(String clientid)
    • setScope

      public void setScope(String scope)
    • create

      Specified by:
      create in interface org.gvsig.downloader.DownloaderAuthenticationConfig
    • isConfigurable

      public boolean isConfigurable()
      Specified by:
      isConfigurable in interface org.gvsig.downloader.DownloaderAuthenticationConfig
      Overrides:
      isConfigurable in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • isFilled

      public boolean isFilled()
      Specified by:
      isFilled in interface org.gvsig.downloader.DownloaderAuthenticationConfig
      Overrides:
      isFilled in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • requestAuthenticationConfig

      public boolean requestAuthenticationConfig()
      Specified by:
      requestAuthenticationConfig in interface org.gvsig.downloader.DownloaderAuthenticationConfig
      Overrides:
      requestAuthenticationConfig in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • fromJson

      public void fromJson(javax.json.JsonObject json)
      Specified by:
      fromJson in interface org.gvsig.json.SupportFromJson
      Overrides:
      fromJson in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • toJsonBuilder

      public org.gvsig.json.JsonObjectBuilder toJsonBuilder()
      Specified by:
      toJsonBuilder in interface org.gvsig.json.SupportToJson
      Overrides:
      toJsonBuilder in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • selfRegister

      public static void selfRegister()
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface org.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>
    • getValue

      Specified by:
      getValue in interface org.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>
    • toString

      public String toString()
      Specified by:
      toString in interface org.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>
      Overrides:
      toString in class Object
    • createAuthenticationConfig

      public org.gvsig.downloader.DownloaderAuthenticationConfig createAuthenticationConfig(String serviceUrl)
      Specified by:
      createAuthenticationConfig in interface org.gvsig.downloader.DownloaderAuthenticationConfig