Class OAuthConsumerRegistryImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.oauth.consumers.OAuthConsumerRegistryImpl
- All Implemented Interfaces:
OAuthConsumerRegistry,Adaptable,Component,Extensible,TimestampedService
Implementation of the
OAuthConsumerRegistry Service. It's basically a simple Storage API on top of an SQL
Directory.- Author:
- tiry
-
Field Summary
FieldsFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteConsumer(String consumerKey) remove a ConsumergetConsumer(String consumerKey) Get a Consumer from its consumerKey.getConsumer(String consumerKey, String keyType) Get a Consumer from its consumerKey.protected NuxeoOAuthConsumerList all registered ConsumersstoreConsumer(NuxeoOAuthConsumer consumer) Store a new ConsumerMethods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, 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
-
DIRECTORY_NAME
- See Also:
-
-
Constructor Details
-
OAuthConsumerRegistryImpl
public OAuthConsumerRegistryImpl()
-
-
Method Details
-
getConsumer
Description copied from interface:OAuthConsumerRegistryGet a Consumer from its consumerKey.The keyType param indicates if we need HMAC or RSA secret. This is needed because the default OAuthValidator implementation only uses 1 field for both Keys. If keyType is OAUth.RSA_SHA1, the consumerSecret field will be polupated with the RSA public key rather than the HMAC secret.
- Specified by:
getConsumerin interfaceOAuthConsumerRegistry
-
getConsumer
Description copied from interface:OAuthConsumerRegistryGet a Consumer from its consumerKey.- Specified by:
getConsumerin interfaceOAuthConsumerRegistry
-
getEntry
-
storeConsumer
Description copied from interface:OAuthConsumerRegistryStore a new Consumer- Specified by:
storeConsumerin interfaceOAuthConsumerRegistry
-
deleteConsumer
Description copied from interface:OAuthConsumerRegistryremove a Consumer- Specified by:
deleteConsumerin interfaceOAuthConsumerRegistry
-
listConsumers
Description copied from interface:OAuthConsumerRegistryList all registered Consumers- Specified by:
listConsumersin interfaceOAuthConsumerRegistry
-