|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.oauth.consumers.OAuthConsumerRegistryImpl
public class OAuthConsumerRegistryImpl
Implementation of the OAuthConsumerRegistry Service. It's basically
a simple Storage API on top of an SQL Directory.
| Field Summary | |
|---|---|
static String |
DIRECTORY_NAME
|
| Constructor Summary | |
|---|---|
OAuthConsumerRegistryImpl()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
activate, applicationStarted, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DIRECTORY_NAME
| Constructor Detail |
|---|
public OAuthConsumerRegistryImpl()
| Method Detail |
|---|
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)
OAuthConsumerRegistry
getConsumer in interface OAuthConsumerRegistry
public NuxeoOAuthConsumer storeConsumer(NuxeoOAuthConsumer consumer)
throws Exception
OAuthConsumerRegistry
storeConsumer in interface OAuthConsumerRegistryExceptionpublic void deleteConsumer(String consumerKey)
OAuthConsumerRegistry
deleteConsumer in interface OAuthConsumerRegistrypublic List<NuxeoOAuthConsumer> listConsumers()
OAuthConsumerRegistry
listConsumers in interface OAuthConsumerRegistry
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||