public class DownloaderAuthenticationKeycloakConfig extends AbstractDownloaderAuthenticationConfig implements DownloaderAuthenticationConfig, LabeledValue<DownloaderAuthenticationConfig>
providerName, serviceUrl
CONFIG_PROVIDERNAME_NAME, CONFIG_SERVICEURL_NAME
Constructor and Description |
---|
DownloaderAuthenticationKeycloakConfig() |
DownloaderAuthenticationKeycloakConfig(DownloaderAuthenticationKeycloakFactory factory,
java.lang.String serviceUrl) |
Modifier and Type | Method and Description |
---|---|
DownloaderAuthenticationKeycloakRequester |
create() |
DownloaderAuthenticationConfig |
createAuthenticationConfig(java.lang.String serviceUrl) |
void |
fromJson(JsonObject json) |
java.lang.String |
getClientid() |
DownloaderAuthenticationKeycloakFactory |
getFactory() |
java.lang.String |
getKey() |
java.lang.String |
getKeycloakBaseurl() |
java.lang.String |
getLabel() |
int |
getLocalPort() |
java.lang.String |
getRealm() |
java.lang.String |
getScope() |
DownloaderAuthenticationKeycloakConfig |
getValue() |
boolean |
isConfigurable() |
boolean |
isFilled() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
boolean |
requestAuthenticationConfig() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
static void |
selfRegister() |
void |
setClientid(java.lang.String clientid) |
void |
setKeycloakBaseurl(java.lang.String keycloakBaseurl) |
void |
setLocalPort(int localPort) |
void |
setRealm(java.lang.String realm) |
void |
setScope(java.lang.String scope) |
JsonObjectBuilder |
toJsonBuilder() |
java.lang.String |
toString() |
clone, getProviderName, getServiceUrl
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProviderName, getServiceUrl
clone, cloneQuietly, cloneQuietly
toJson, toJson, toJsonBuilder
label
public DownloaderAuthenticationKeycloakConfig(DownloaderAuthenticationKeycloakFactory factory, java.lang.String serviceUrl)
public DownloaderAuthenticationKeycloakConfig()
public DownloaderAuthenticationKeycloakFactory getFactory()
getFactory
in interface DownloaderAuthenticationConfig
getFactory
in class AbstractDownloaderAuthenticationConfig
public java.lang.String getKey()
getKey
in interface DownloaderAuthenticationConfig
getKey
in class AbstractDownloaderAuthenticationConfig
public int getLocalPort()
public java.lang.String getKeycloakBaseurl()
public java.lang.String getRealm()
public java.lang.String getClientid()
public java.lang.String getScope()
public void setKeycloakBaseurl(java.lang.String keycloakBaseurl)
public void setLocalPort(int localPort)
public void setRealm(java.lang.String realm)
public void setClientid(java.lang.String clientid)
public void setScope(java.lang.String scope)
public DownloaderAuthenticationKeycloakRequester create()
create
in interface DownloaderAuthenticationConfig
public boolean isConfigurable()
isConfigurable
in interface DownloaderAuthenticationConfig
isConfigurable
in class AbstractDownloaderAuthenticationConfig
public boolean isFilled()
isFilled
in interface DownloaderAuthenticationConfig
isFilled
in class AbstractDownloaderAuthenticationConfig
public boolean requestAuthenticationConfig()
requestAuthenticationConfig
in interface DownloaderAuthenticationConfig
requestAuthenticationConfig
in class AbstractDownloaderAuthenticationConfig
public void fromJson(JsonObject json)
fromJson
in interface SupportFromJson
fromJson
in class AbstractDownloaderAuthenticationConfig
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson
toJsonBuilder
in class AbstractDownloaderAuthenticationConfig
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractDownloaderAuthenticationConfig
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractDownloaderAuthenticationConfig
PersistenceException
public static void selfRegister()
public java.lang.String getLabel()
getLabel
in interface LabeledValue<DownloaderAuthenticationConfig>
public DownloaderAuthenticationKeycloakConfig getValue()
getValue
in interface LabeledValue<DownloaderAuthenticationConfig>
public java.lang.String toString()
toString
in interface LabeledValue<DownloaderAuthenticationConfig>
toString
in class java.lang.Object
public DownloaderAuthenticationConfig createAuthenticationConfig(java.lang.String serviceUrl)
createAuthenticationConfig
in interface DownloaderAuthenticationConfig