public interface ConsumerStore
Modifier and Type | Method and Description |
---|---|
LyoOAuthConsumer |
addConsumer(LyoOAuthConsumer consumer)
Adds a new consumer.
|
void |
closeConsumerStore()
Closes the consumer store.
|
Collection<LyoOAuthConsumer> |
getAllConsumers()
Gets all OAuth consumers.
|
LyoOAuthConsumer |
getConsumer(net.oauth.OAuthMessage requestMessage)
Gets the consumer for this message.
|
LyoOAuthConsumer |
getConsumer(String consumerKey)
Gets the consumer for a key.
|
LyoOAuthConsumer |
removeConsumer(String consumerKey)
Removes a consumer.
|
LyoOAuthConsumer |
updateConsumer(LyoOAuthConsumer consumer)
Updates a consumer.
|
LyoOAuthConsumer getConsumer(net.oauth.OAuthMessage requestMessage) throws net.oauth.OAuthException, IOException, ConsumerStoreException
requestMessage
- the OAuth messagenet.oauth.OAuthException
- if the OAuth message does not contain a consumer keyIOException
- on errors reading the messageConsumerStoreException
- on other errorsCollection<LyoOAuthConsumer> getAllConsumers() throws ConsumerStoreException
ConsumerStoreException
- on errorsLyoOAuthConsumer getConsumer(String consumerKey) throws ConsumerStoreException
consumerKey
- the consumer keyConsumerStoreException
- on errorsLyoOAuthConsumer addConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
consumer
- the consumerConsumerStoreException
LyoOAuthConsumer removeConsumer(String consumerKey) throws ConsumerStoreException
key
- the consumer keyConsumerStoreException
- on errorsLyoOAuthConsumer updateConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
consumer
- the consumerConsumerStoreException
- on errorsvoid closeConsumerStore()
Copyright © 2018. All Rights Reserved.