Class OAuth2ServiceProviderRegistryImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderRegistryImpl
- All Implemented Interfaces:
OAuth2ServiceProviderRegistry,Adaptable,Component,Extensible,TimestampedService
public class OAuth2ServiceProviderRegistryImpl
extends DefaultComponent
implements OAuth2ServiceProviderRegistry
Implementation of the
OAuth2ServiceProviderRegistry. The storage backend is a SQL Directory.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringRegistry of contributed providers.static final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String userAuthorizationURL, String clientId, String clientSecret, List<String> scopes, Boolean isEnabled) addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String clientId, String clientSecret, List<String> scopes) protected OAuth2ServiceProviderbuildProvider(DocumentModel entry) Instantiates the provider merging the contribution and the directory entryvoiddeleteProvider(String serviceName) getProvider(String serviceName) protected DocumentModelgetProviderDocModel(String serviceName) protected List<DocumentModel>queryProviders(QueryBuilder query) voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) protected voidvoidstart(ComponentContext context) Start the component.updateProvider(String serviceName, OAuth2ServiceProvider provider) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
PROVIDER_EP
- See Also:
-
DIRECTORY_NAME
- See Also:
-
SCHEMA
- See Also:
-
registry
Registry of contributed providers. These providers can extend and/or override the default provider class.
-
-
Constructor Details
-
OAuth2ServiceProviderRegistryImpl
public OAuth2ServiceProviderRegistryImpl()
-
-
Method Details
-
getProviderDocModel
-
getProvider
- Specified by:
getProviderin interfaceOAuth2ServiceProviderRegistry
-
getProviders
- Specified by:
getProvidersin interfaceOAuth2ServiceProviderRegistry
-
addProvider
public OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String clientId, String clientSecret, List<String> scopes) - Specified by:
addProviderin interfaceOAuth2ServiceProviderRegistry
-
addProvider
public OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String userAuthorizationURL, String clientId, String clientSecret, List<String> scopes, Boolean isEnabled) - Specified by:
addProviderin interfaceOAuth2ServiceProviderRegistry
-
updateProvider
- Specified by:
updateProviderin interfaceOAuth2ServiceProviderRegistry
-
deleteProvider
- Specified by:
deleteProviderin interfaceOAuth2ServiceProviderRegistry
-
queryProviders
-
buildProvider
Instantiates the provider merging the contribution and the directory entry -
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
registerCustomProviders
protected void registerCustomProviders()
-