public class FileSystemConsumerStore extends Object implements org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
Constructor and Description |
---|
FileSystemConsumerStore(File file)
Creates a new store backed by the specified file.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer |
addConsumer(org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer consumer) |
void |
closeConsumerStore() |
Collection<org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer> |
getAllConsumers() |
org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer |
getConsumer(net.oauth.OAuthMessage message) |
org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer |
getConsumer(String key) |
Map<String,org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer> |
load() |
org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer |
removeConsumer(String identifier) |
void |
store(Collection<org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer> consumers) |
org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer |
updateConsumer(org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer consumer) |
public FileSystemConsumerStore(File file)
file
- the file where to store consumers.public Map<String,org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer> load() throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public void store(Collection<org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer> consumers) throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public Collection<org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer> getAllConsumers() throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
getAllConsumers
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer addConsumer(org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer consumer) throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
addConsumer
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer removeConsumer(String identifier) throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
removeConsumer
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer updateConsumer(org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer consumer) throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
updateConsumer
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer getConsumer(net.oauth.OAuthMessage message) throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException, IOException
getConsumer
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
IOException
public org.eclipse.lyo.server.oauth.core.consumer.LyoOAuthConsumer getConsumer(String key) throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
getConsumer
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore
org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
public void closeConsumerStore()
closeConsumerStore
in interface org.eclipse.lyo.server.oauth.core.consumer.ConsumerStore