Class: Saml::Elements::Conditions

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/saml/elements/conditions.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Conditions

Returns a new instance of Conditions.



14
15
16
17
18
19
20
# File 'lib/saml/elements/conditions.rb', line 14

def initialize(*args)
  options = args.extract_options!
  @audience_restriction = Saml::Elements::AudienceRestriction.new(:audience => options.delete(:audience)) if options[:audience]
  self.not_before       = Time.now - Saml::Config.max_issue_instant_offset.minutes
  self.not_on_or_after  = Time.now + Saml::Config.max_issue_instant_offset.minutes
  super(*(args << options))
end