|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConsumerStore
Manages persistence of OAuth consumers.
Method Summary | |
---|---|
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. |
Method Detail |
---|
LyoOAuthConsumer getConsumer(net.oauth.OAuthMessage requestMessage) throws net.oauth.OAuthException, IOException, ConsumerStoreException
requestMessage
- the OAuth message
net.oauth.OAuthException
- if the OAuth message does not contain a consumer key
IOException
- on errors reading the message
ConsumerStoreException
- on other errorsCollection<LyoOAuthConsumer> getAllConsumers() throws ConsumerStoreException
ConsumerStoreException
- on errorsLyoOAuthConsumer getConsumer(String consumerKey) throws ConsumerStoreException
consumerKey
- the consumer key
ConsumerStoreException
- on errorsLyoOAuthConsumer addConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
consumer
- the consumer
ConsumerStoreException
LyoOAuthConsumer removeConsumer(String consumerKey) throws ConsumerStoreException
key
- the consumer key
ConsumerStoreException
- on errorsLyoOAuthConsumer updateConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
consumer
- the consumer
ConsumerStoreException
- on errorsvoid closeConsumerStore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |