lib/rsaml/authentication_context.rb
# Construct an XML fragment representing the authentication statement
Construct an XML fragment representing the authentication statement
Construct an XML fragment representing the authentication statement
def to_xml(xml=Builder::XmlMarkup.new)
      xml.tag!('saml:AuthnContext') {
        xml.tag!('saml:AuthnContextClassRef', class_reference) unless class_reference.nil?
        xml.tag!('saml:AuthnContextDecl', context_declaration) unless context_declaration.nil?
        xml.tag!('saml:AuthnContextDeclRef', context_declaration_ref) unless context_declaration_ref.nil?
      }
    end
def to_xml ( xml = Builder :: XmlMarkup . new ) xml . tag! ( 'saml:AuthnContext' ) { xml . tag! ( 'saml:AuthnContextClassRef' , class_reference ) unless class_reference . nil? xml . tag! ( 'saml:AuthnContextDecl' , context_declaration ) unless context_declaration . nil? xml . tag! ( 'saml:AuthnContextDeclRef' , context_declaration_ref ) unless context_declaration_ref . nil? } end
Construct an XML fragment representing the authentication statement
Construct an XML fragment representing the authentication statement
xml
new