public abstract class AbstractConsumerStore extends Object implements ConsumerStore
Constructor and Description |
---|
AbstractConsumerStore() |
Modifier and Type | Method and Description |
---|---|
protected LyoOAuthConsumer |
add(LyoOAuthConsumer consumer) |
void |
addAll(Collection<LyoOAuthConsumer> consumers) |
abstract 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.
|
protected LyoOAuthConsumer |
remove(String consumerKey) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConsumer, removeConsumer, updateConsumer
public void addAll(Collection<LyoOAuthConsumer> consumers)
public Collection<LyoOAuthConsumer> getAllConsumers()
ConsumerStore
getAllConsumers
in interface ConsumerStore
public LyoOAuthConsumer getConsumer(net.oauth.OAuthMessage requestMessage) throws net.oauth.OAuthException, IOException
ConsumerStore
getConsumer
in interface ConsumerStore
requestMessage
- the OAuth messagenet.oauth.OAuthException
- if the OAuth message does not contain a consumer keyConsumerStoreException
- on other errorsIOException
- on errors reading the messagepublic LyoOAuthConsumer getConsumer(String consumerKey)
ConsumerStore
getConsumer
in interface ConsumerStore
consumerKey
- the consumer keypublic abstract void closeConsumerStore()
ConsumerStore
closeConsumerStore
in interface ConsumerStore
protected LyoOAuthConsumer add(LyoOAuthConsumer consumer)
protected LyoOAuthConsumer remove(String consumerKey)
Copyright © 2018. All Rights Reserved.