Class FileSystemFriendStore

  • All Implemented Interfaces:
    FriendStore

    public class FileSystemFriendStore
    extends AbstractFriendStore
    A simple RDF friend store backed by an XML file on the filesystem. NOTE: The consumer secret is stored as Base64 and is only obfuscated, not encrypted.
    Since:
    1.3.0
    • Constructor Detail

      • FileSystemFriendStore

        public FileSystemFriendStore​(File file)
        Creates a new store backed by the specified file.
        Parameters:
        file - the file where to store friends.
    • Method Detail

      • load

        public Collection<Friend> load()
                                throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
        Description copied from class: AbstractFriendStore
        Loads friends from the underlying storage.
        Specified by:
        load in class AbstractFriendStore
        Returns:
        the loaded friends.
        Throws:
        org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException - on errors.
      • store

        public void store​(Collection<Friend> friends)
                   throws org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException
        Description copied from class: AbstractFriendStore
        Stores the new collection of friends.
        Specified by:
        store in class AbstractFriendStore
        Parameters:
        friends - the new collection of friends to store.
        Throws:
        org.eclipse.lyo.server.oauth.core.consumer.ConsumerStoreException - on errors.