Package org.keycloak.storage.openshift
Class OpenshiftClientStorageProviderFactory
- java.lang.Object
-
- org.keycloak.storage.openshift.OpenshiftClientStorageProviderFactory
-
- All Implemented Interfaces:
ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>,ConfiguredProvider,EnvironmentDependentProviderFactory,ProviderFactory<ClientStorageProvider>,ClientStorageProviderFactory<OpenshiftClientStorageProvider>
public class OpenshiftClientStorageProviderFactory extends Object implements ClientStorageProviderFactory<OpenshiftClientStorageProvider>, EnvironmentDependentProviderFactory
- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_PROPERTY_ACCESS_TOKENstatic StringCONFIG_PROPERTY_DEFAULT_NAMESPACEstatic StringCONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXTstatic StringCONFIG_PROPERTY_OPENSHIFT_URIstatic StringCONFIG_PROPERTY_REQUIRE_USER_CONSENTstatic StringPROVIDER_ID
-
Constructor Summary
Constructors Constructor Description OpenshiftClientStorageProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenshiftClientStorageProvidercreate(KeycloakSession session, ComponentModel model)called per Keycloak transaction.List<ProviderConfigProperty>getConfigProperties()StringgetHelpText()StringgetId()This is the name of the provider and will be showed in the admin console as an option.booleanisSupported()voidonUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel)Called after the component is updated.voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config)Called before a component is created or updated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.storage.client.ClientStorageProviderFactory
close, getCommonProviderConfigProperties, getTypeMetadata, init, onCreate, postInit
-
Methods inherited from interface org.keycloak.component.ComponentFactory
create, preRemove
-
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
-
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupported
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Field Detail
-
PROVIDER_ID
public static final String PROVIDER_ID
- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_ACCESS_TOKEN
public static final String CONFIG_PROPERTY_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_OPENSHIFT_URI
public static final String CONFIG_PROPERTY_OPENSHIFT_URI
- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_DEFAULT_NAMESPACE
public static final String CONFIG_PROPERTY_DEFAULT_NAMESPACE
- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_REQUIRE_USER_CONSENT
public static final String CONFIG_PROPERTY_REQUIRE_USER_CONSENT
- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXT
public static final String CONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ClientStorageProviderFactoryThis is the name of the provider and will be showed in the admin console as an option.- Specified by:
getIdin interfaceClientStorageProviderFactory<OpenshiftClientStorageProvider>- Specified by:
getIdin interfaceProviderFactory<ClientStorageProvider>
-
create
public OpenshiftClientStorageProvider create(KeycloakSession session, ComponentModel model)
Description copied from interface:ClientStorageProviderFactorycalled per Keycloak transaction.- Specified by:
createin interfaceClientStorageProviderFactory<OpenshiftClientStorageProvider>- Specified by:
createin interfaceComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
-
getHelpText
public String getHelpText()
- Specified by:
getHelpTextin interfaceClientStorageProviderFactory<OpenshiftClientStorageProvider>- Specified by:
getHelpTextin interfaceConfiguredProvider
-
getConfigProperties
public List<ProviderConfigProperty> getConfigProperties()
- Specified by:
getConfigPropertiesin interfaceClientStorageProviderFactory<OpenshiftClientStorageProvider>- Specified by:
getConfigPropertiesin interfaceConfiguredProvider
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel config) throws ComponentValidationException
Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfigurationin interfaceClientStorageProviderFactory<OpenshiftClientStorageProvider>- Specified by:
validateConfigurationin interfaceComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>- Throws:
ComponentValidationException
-
onUpdate
public void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel)
Description copied from interface:ComponentFactoryCalled after the component is updated.- Specified by:
onUpdatein interfaceComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>oldModel- old saved modelnewModel- new configuration
-
isSupported
public boolean isSupported()
- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Returns:
trueif the provider is supported and should be available,falseotherwise
-
-