Class: SAML2::RequestedAuthnContext
- Defined in:
- lib/saml2/requested_authn_context.rb
Instance Attribute Summary collapse
-
#class_ref ⇒ Object
Returns the value of attribute class_ref.
-
#comparison ⇒ Object
Returns the value of attribute comparison.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
from_xml, #from_xml, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml
Instance Attribute Details
#class_ref ⇒ Object
Returns the value of attribute class_ref.
5 6 7 |
# File 'lib/saml2/requested_authn_context.rb', line 5 def class_ref @class_ref end |
#comparison ⇒ Object
Returns the value of attribute comparison.
5 6 7 |
# File 'lib/saml2/requested_authn_context.rb', line 5 def comparison @comparison end |
Instance Method Details
#build(builder) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/saml2/requested_authn_context.rb', line 7 def build(builder) builder['samlp'].RequestedAuthnContext do |requested_authn_context| requested_authn_context.parent['Comparison'] = comparison.to_s if comparison Array(class_ref).each do |individual_class_ref| requested_authn_context['saml'].AuthnContextClassRef(individual_class_ref) end end end |