public interface OAuthConsumerRegistry
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
|
NuxeoOAuthConsumer getConsumer(String consumerKey)
NuxeoOAuthConsumer getConsumer(String consumerKey, String keyType)
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.
void deleteConsumer(String consumerKey)
List<NuxeoOAuthConsumer> listConsumers()
NuxeoOAuthConsumer storeConsumer(NuxeoOAuthConsumer consumer)
Copyright © 2017 Nuxeo. All rights reserved.