Class: OpenID::ServerAssociation

Inherits:
Association show all
Defined in:
lib/openid/association.rb

Overview

class ConsumerAssociation

Instance Attribute Summary

Attributes inherited from Association

#expiry, #handle, #secret

Instance Method Summary collapse

Constructor Details

#initialize(handle, secret, expiry_off, replace_after_off) ⇒ ServerAssociation

Returns a new instance of ServerAssociation.



40
41
42
43
44
45
46
# File 'lib/openid/association.rb', line 40

def initialize(handle, secret, expiry_off, replace_after_off)
	now = Time.now
	expiry = now + expiry_off
	replace_after = now + replace_after_off
	super(handle, secret, expiry, replace_after)
	@issued = now
end