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
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteConsumer
(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 NuxeoOAuthConsumer
List 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, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:OAuthConsumerRegistry
Get 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:
getConsumer
in interfaceOAuthConsumerRegistry
-
getConsumer
Description copied from interface:OAuthConsumerRegistry
Get a Consumer from its consumerKey.- Specified by:
getConsumer
in interfaceOAuthConsumerRegistry
-
getEntry
-
storeConsumer
Description copied from interface:OAuthConsumerRegistry
Store a new Consumer- Specified by:
storeConsumer
in interfaceOAuthConsumerRegistry
-
deleteConsumer
Description copied from interface:OAuthConsumerRegistry
remove a Consumer- Specified by:
deleteConsumer
in interfaceOAuthConsumerRegistry
-
listConsumers
Description copied from interface:OAuthConsumerRegistry
List all registered Consumers- Specified by:
listConsumers
in interfaceOAuthConsumerRegistry
-