lib/openid/stores.rb in ruby-openid-1.0.1 vs lib/openid/stores.rb in ruby-openid-1.0.2

- old
+ new

@@ -5,26 +5,26 @@ # Interface for the abstract Store class Store @@AUTH_KEY_LEN = 20 - # Put a Association object into storace - def store_association(association) + # Put a Association object into storage + def store_association(server_url, association) raise NotImplementedError end # Returns a Association object from storage that matches # the server_url. Returns nil if no such association is found or if # the one matching association is expired. (Is allowed to GC expired # associations when found.) - def get_association(server_url) + def get_association(server_url, handle=nil) raise NotImplementedError end # If there is a matching association, remove it from the store and # return true, otherwise return false. - def removeAssociation(server_url, handle) + def remove_association(server_url, handle) raise NotImplementedError end # Stores a nonce (which is passed in as a string). def store_nonce(nonce) @@ -57,14 +57,14 @@ def initialize(secret_phrase) require "digest/sha1" @auth_key = Digest::SHA1.hexdigest(secret_phrase) end - def store_association(assoc) + def store_association(server_url, assoc) nil end - def get_association(server_url) + def get_association(server_url, handle=nil) nil end def remove_association(server_url, handle) false