Class: OpenID::Store::Filesystem

Class | OpenID::Store::Filesystem
In: | lib/openid/store/filesystem.rb
Parent: | Interface

### Methods

_get_association cleanup cleanup_associations cleanup_nonces ensure_dir filename_escape get_association get_association_filename mktemp new remove_association remove_if_present safe64 store_association use_nonce

### Public Class methods

new(directory)

Create a Filesystem store instance, putting all data in `directory`.

### Public Instance methods

_get_association(filename)
cleanup()

Remove expired entries from the database. This is potentially expensive, so only run when it is acceptable to take time.

cleanup_associations()
cleanup_nonces()
get_association(server_url, handle=nil)

Retrieve an association

get_association_filename(server_url, handle)

Create a unique filename for a given server url and handle. The filename that is returned will contain the domain name from the server URL for ease of human inspection of the data dir.

remove_association(server_url, handle)

Remove an association if it exists, otherwise do nothing.

store_association(server_url, association)

Store an association in the assoc directory

use_nonce(server_url, timestamp, salt)

Return whether the nonce is valid

### Protected Instance methods

ensure_dir(dir_name)

ensure that a path exists

filename_escape(s)

create a safe filename from a url

mktemp()

Create a temporary file and return the File object and filename.

remove_if_present(filename)

remove file if present in filesystem

safe64(s)

[Validate]