public class OpenshiftClientStorageProviderFactory extends Object implements ClientStorageProviderFactory<OpenshiftClientStorageProvider>, EnvironmentDependentProviderFactory
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PROPERTY_ACCESS_TOKEN |
static String |
CONFIG_PROPERTY_DEFAULT_NAMESPACE |
static String |
CONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXT |
static String |
CONFIG_PROPERTY_OPENSHIFT_URI |
static String |
CONFIG_PROPERTY_REQUIRE_USER_CONSENT |
static String |
PROVIDER_ID |
Constructor and Description |
---|
OpenshiftClientStorageProviderFactory() |
Modifier and Type | Method and Description |
---|---|
OpenshiftClientStorageProvider |
create(KeycloakSession session,
ComponentModel model)
called per Keycloak transaction.
|
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getHelpText() |
String |
getId()
This is the name of the provider and will be showed in the admin console as an option.
|
boolean |
isSupported() |
void |
onUpdate(KeycloakSession session,
RealmModel realm,
ComponentModel oldModel,
ComponentModel newModel)
Called after the component is updated.
|
void |
validateConfiguration(KeycloakSession session,
RealmModel realm,
ComponentModel config)
Called before a component is created or updated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getCommonProviderConfigProperties, getTypeMetadata, init, onCreate, postInit
create, preRemove
order
public static final String PROVIDER_ID
public static final String CONFIG_PROPERTY_ACCESS_TOKEN
public static final String CONFIG_PROPERTY_OPENSHIFT_URI
public static final String CONFIG_PROPERTY_DEFAULT_NAMESPACE
public static final String CONFIG_PROPERTY_REQUIRE_USER_CONSENT
public static final String CONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXT
public OpenshiftClientStorageProviderFactory()
public String getId()
ClientStorageProviderFactory
getId
in interface ProviderFactory<ClientStorageProvider>
getId
in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>
public OpenshiftClientStorageProvider create(KeycloakSession session, ComponentModel model)
ClientStorageProviderFactory
create
in interface ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
create
in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>
public String getHelpText()
getHelpText
in interface ConfiguredProvider
getHelpText
in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>
public List<ProviderConfigProperty> getConfigProperties()
getConfigProperties
in interface ConfiguredProvider
getConfigProperties
in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException
ComponentFactory
validateConfiguration
in interface ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
validateConfiguration
in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>
ComponentValidationException
public void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel)
ComponentFactory
onUpdate
in interface ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
oldModel
- old saved modelnewModel
- new configurationpublic boolean isSupported()
isSupported
in interface EnvironmentDependentProviderFactory
true
if the provider is supported and should be available, false
otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.