Class: SAML2::Conditions::Condition

Inherits:
Base
  • Object
show all
Defined in:
lib/saml2/conditions.rb

Overview

Any unknown condition

Direct Known Subclasses

AudienceRestriction, OneTimeUse

Instance Attribute Summary

Attributes inherited from Base

#xml

Instance Method Summary collapse

Methods inherited from Base

#build, #decrypt, from_xml, #from_xml, #initialize, #inspect, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml

Constructor Details

This class inherits a constructor from SAML2::Base

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


88
89
90
# File 'lib/saml2/conditions.rb', line 88

def valid?(...)
  validate(...).empty?
end

#validate(_) ⇒ Object

Returns [].

Returns:



84
85
86
# File 'lib/saml2/conditions.rb', line 84

def validate(_)
  ["unable to validate #{xml&.name || "unrecognized"} condition"]
end