public class OAuthConsumerRegistryImpl extends DefaultComponent implements OAuthConsumerRegistry
OAuthConsumerRegistry Service. It's basically
a simple Storage API on top of an SQL Directory.| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTORY_NAME |
| Constructor and Description |
|---|
OAuthConsumerRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteConsumer(String consumerKey)
remove a Consumer
|
NuxeoOAuthConsumer |
getConsumer(String consumerKey)
Get a Consumer from its consumerKey.
|
NuxeoOAuthConsumer |
getConsumer(String consumerKey,
String keyType)
Get a Consumer from its consumerKey.
|
List<NuxeoOAuthConsumer> |
listConsumers()
List all registered Consumers
|
NuxeoOAuthConsumer |
storeConsumer(NuxeoOAuthConsumer consumer)
Store a new Consumer
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, unregisterContribution, unregisterExtensionpublic static final String DIRECTORY_NAME
public NuxeoOAuthConsumer getConsumer(String consumerKey, String keyType)
OAuthConsumerRegistryThe 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.
getConsumer in interface OAuthConsumerRegistrypublic NuxeoOAuthConsumer getConsumer(String consumerKey)
OAuthConsumerRegistrygetConsumer in interface OAuthConsumerRegistrypublic NuxeoOAuthConsumer storeConsumer(NuxeoOAuthConsumer consumer) throws Exception
OAuthConsumerRegistrystoreConsumer in interface OAuthConsumerRegistryExceptionpublic void deleteConsumer(String consumerKey)
OAuthConsumerRegistrydeleteConsumer in interface OAuthConsumerRegistrypublic List<NuxeoOAuthConsumer> listConsumers()
OAuthConsumerRegistrylistConsumers in interface OAuthConsumerRegistryCopyright © 2013 Nuxeo SA. All Rights Reserved.