Method: RSAML::Assertion#assert

Defined in:
lib/rsaml/assertion.rb

#assertObject

Assert the assertion.



127
128
129
130
131
132
133
134
135
136
137
# File 'lib/rsaml/assertion.rb', line 127

def assert
  # rule: if there is a signature it must be asserted
  signature.assert if signature
  
  # rule: if there are conditions then they must be asserted
  if conditions
    # rule: an assertion cache should be kept if conditions allow it
    assertion_cache << self unless conditions.cache?
    conditions.assert
  end
end