class SAML2::RequestedAuthnContext

Attributes

class_ref[RW]

@return [String, Array<String>]

comparison[RW]

@return [String, nil]

Public Instance Methods

build(builder) click to toggle source

(see Base#build)

# File lib/saml2/requested_authn_context.rb, line 19
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
from_xml(node) click to toggle source

(see Base#from_xml)

Calls superclass method SAML2::Base::from_xml
# File lib/saml2/requested_authn_context.rb, line 13
def from_xml(node)
  super
  @class_ref = load_string_array(node, "saml:AuthnContextClassRef")
end