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, waitclose, getCommonProviderConfigProperties, getTypeMetadata, init, onCreate, postInitcreate, preRemoveorderpublic 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()
ClientStorageProviderFactorygetId in interface ProviderFactory<ClientStorageProvider>getId in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>public OpenshiftClientStorageProvider create(KeycloakSession session, ComponentModel model)
ClientStorageProviderFactorycreate in interface ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>create in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>public String getHelpText()
getHelpText in interface ConfiguredProvidergetHelpText in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>public List<ProviderConfigProperty> getConfigProperties()
getConfigProperties in interface ConfiguredProvidergetConfigProperties in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException
ComponentFactoryvalidateConfiguration in interface ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>validateConfiguration in interface ClientStorageProviderFactory<OpenshiftClientStorageProvider>ComponentValidationExceptionpublic void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel)
ComponentFactoryonUpdate in interface ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>oldModel - old saved modelnewModel - new configurationpublic boolean isSupported()
isSupported in interface EnvironmentDependentProviderFactorytrue if the provider is supported and should be available, false otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.