Class OpenID::FilesystemStore
In: lib/openid/filestore.rb
Parent: Store

Filesystem-based store for OpenID associations and nonces.

Methods of this object may raise SystemCallError if filestystem related errors are encountered.

Methods

Public Class methods

Create a FilesystemStore instance, putting all data in directory.

Public Instance methods

Garbage collection routine. Clean up old associations and nonces.

Generate a new random auth key and safely store it in the location specified by @auth_key_name

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.

Retrieve the auth key from the file specified by @auth_key_file, creating it if it does not exist

Read the auth key from the auth key file. Returns nil if there is currently no auth key.

Remove an association if it exists, otherwise do nothing.

Store an association in the assoc directory

Mark this nonce as present

Return whether this nonce is present. As a side-effect, mark it as no longer present.

Protected Instance methods

ensure that a path exists

create a safe filename from a url

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

remove file if present in filesystem

[Validate]