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 SummaryFields 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 SummaryConstructors Constructor Description OpenshiftClientStorageProviderFactory()
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.storage.client.ClientStorageProviderFactoryclose, getCommonProviderConfigProperties, getTypeMetadata, init, onCreate, postInit
 - 
Methods inherited from interface org.keycloak.component.ComponentFactorycreate, preRemove
 - 
Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Field Detail- 
PROVIDER_IDpublic static final String PROVIDER_ID - See Also:
- Constant Field Values
 
 - 
CONFIG_PROPERTY_ACCESS_TOKENpublic static final String CONFIG_PROPERTY_ACCESS_TOKEN - See Also:
- Constant Field Values
 
 - 
CONFIG_PROPERTY_OPENSHIFT_URIpublic static final String CONFIG_PROPERTY_OPENSHIFT_URI - See Also:
- Constant Field Values
 
 - 
CONFIG_PROPERTY_DEFAULT_NAMESPACEpublic static final String CONFIG_PROPERTY_DEFAULT_NAMESPACE - See Also:
- Constant Field Values
 
 - 
CONFIG_PROPERTY_REQUIRE_USER_CONSENTpublic static final String CONFIG_PROPERTY_REQUIRE_USER_CONSENT - See Also:
- Constant Field Values
 
 - 
CONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXTpublic static final String CONFIG_PROPERTY_DISPLAY_SCOPE_CONSENT_TEXT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getIdpublic 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 interface- ClientStorageProviderFactory<OpenshiftClientStorageProvider>
- Specified by:
- getIdin interface- ProviderFactory<ClientStorageProvider>
 
 - 
createpublic OpenshiftClientStorageProvider create(KeycloakSession session, ComponentModel model) Description copied from interface:ClientStorageProviderFactorycalled per Keycloak transaction.- Specified by:
- createin interface- ClientStorageProviderFactory<OpenshiftClientStorageProvider>
- Specified by:
- createin interface- ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
 
 - 
getHelpTextpublic String getHelpText() - Specified by:
- getHelpTextin interface- ClientStorageProviderFactory<OpenshiftClientStorageProvider>
- Specified by:
- getHelpTextin interface- ConfiguredProvider
 
 - 
getConfigPropertiespublic List<ProviderConfigProperty> getConfigProperties() - Specified by:
- getConfigPropertiesin interface- ClientStorageProviderFactory<OpenshiftClientStorageProvider>
- Specified by:
- getConfigPropertiesin interface- ConfiguredProvider
 
 - 
validateConfigurationpublic 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 interface- ClientStorageProviderFactory<OpenshiftClientStorageProvider>
- Specified by:
- validateConfigurationin interface- ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
- Throws:
- ComponentValidationException
 
 - 
onUpdatepublic void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Description copied from interface:ComponentFactoryCalled after the component is updated.- Specified by:
- onUpdatein interface- ComponentFactory<OpenshiftClientStorageProvider,ClientStorageProvider>
- oldModel- old saved model
- newModel- new configuration
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 
- 
 
-