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
-
Field Summary
Fields inherited from class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
providerName, serviceUrlFields inherited from interface org.gvsig.downloader.DownloaderAuthenticationConfig
CONFIG_PROVIDERNAME_NAME, CONFIG_SERVICEURL_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDownloaderAuthenticationKeycloakConfig(DownloaderAuthenticationKeycloakFactory factory, String serviceUrl) -
Method Summary
Modifier and TypeMethodDescriptioncreate()org.gvsig.downloader.DownloaderAuthenticationConfigcreateAuthenticationConfig(String serviceUrl) voidfromJson(javax.json.JsonObject json) getKey()getLabel()intgetRealm()getScope()getValue()booleanbooleanisFilled()voidloadFromState(org.gvsig.tools.persistence.PersistentState state) booleanvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsetClientid(String clientid) voidsetKeycloakBaseurl(String keycloakBaseurl) voidsetLocalPort(int localPort) voidvoidorg.gvsig.json.JsonObjectBuildertoString()Methods inherited from class org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
clone, getProviderName, getServiceUrlMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.downloader.DownloaderAuthenticationConfig
getProviderName, getServiceUrlMethods inherited from interface org.gvsig.json.SupportToJson
toJson, toJson, toJsonBuilder
-
Constructor Details
-
DownloaderAuthenticationKeycloakConfig
public DownloaderAuthenticationKeycloakConfig(DownloaderAuthenticationKeycloakFactory factory, String serviceUrl) -
DownloaderAuthenticationKeycloakConfig
public DownloaderAuthenticationKeycloakConfig()
-
-
Method Details
-
getFactory
- Specified by:
getFactoryin interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig- Overrides:
getFactoryin classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
getKey
- Specified by:
getKeyin interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig- Overrides:
getKeyin classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
getLocalPort
public int getLocalPort() -
getKeycloakBaseurl
-
getRealm
-
getClientid
-
getScope
-
setKeycloakBaseurl
-
setLocalPort
public void setLocalPort(int localPort) -
setRealm
-
setClientid
-
setScope
-
create
- Specified by:
createin interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig
-
isConfigurable
public boolean isConfigurable()- Specified by:
isConfigurablein interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig- Overrides:
isConfigurablein classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
isFilled
public boolean isFilled()- Specified by:
isFilledin interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig- Overrides:
isFilledin classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
requestAuthenticationConfig
public boolean requestAuthenticationConfig()- Specified by:
requestAuthenticationConfigin interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig- Overrides:
requestAuthenticationConfigin classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
fromJson
public void fromJson(javax.json.JsonObject json) - Specified by:
fromJsonin interfaceorg.gvsig.json.SupportFromJson- Overrides:
fromJsonin classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
toJsonBuilder
public org.gvsig.json.JsonObjectBuilder toJsonBuilder()- Specified by:
toJsonBuilderin interfaceorg.gvsig.json.SupportToJson- Overrides:
toJsonBuilderin classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classorg.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:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classorg.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
selfRegister
public static void selfRegister() -
getLabel
- Specified by:
getLabelin interfaceorg.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>
-
getValue
- Specified by:
getValuein interfaceorg.gvsig.tools.util.LabeledValue<org.gvsig.downloader.DownloaderAuthenticationConfig>
-
toString
-
createAuthenticationConfig
public org.gvsig.downloader.DownloaderAuthenticationConfig createAuthenticationConfig(String serviceUrl) - Specified by:
createAuthenticationConfigin interfaceorg.gvsig.downloader.DownloaderAuthenticationConfig
-