lib/onelogin/ruby-saml/metadata.rb
def output_xml(meta_doc, pretty_print)
        ret = ''

        # pretty print the XML so IdP administrators can easily see what the SP supports
        if pretty_print
          meta_doc.write(ret, 1, save_with: 0)
        else
          ret = meta_doc.to_s
        end

        ret
      end
# Return SP metadata based on the settings.
# @param settings [OneLogin::RubySaml::Settings|nil] Toolkit settings
# @param pretty_print [Boolean] Pretty print or not the response
#                               (No pretty print if you gonna validate the signature)
# @param valid_until [DateTime] Metadata's valid time
# @param cache_duration [Integer] Duration of the cache in seconds
# @return [String] XML Metadata of the Service Provider
#
Return SP metadata based on the settings.
Return SP metadata based on the settings .
def output_xml(meta_doc, pretty_print)
        ret = ''
        if pretty_print
          meta_doc.write(ret, 1, save_with: 0)
        else
          ret = meta_doc.to_s
        end
        ret
      end
def output_xml ( meta_doc , pretty_print ) ret = '' if pretty_print meta_doc . write ( ret , 1 , save_with : 0 ) else ret = meta_doc . to_s end ret end
Return SP metadata based on the settings.
Return SP metadata based on the settings .
# pretty print the XML so IdP administrators can easily see what the SP supports
XML Metadata of the Service Provider
XML Metadata of the Service Provider
String
meta_doc
pretty_print
Pretty print or not the response (No pretty print if you gonna validate the signature)
Pretty print or not the response ( No pretty print if you gonna validate the signature )
settings
None
valid_until
Metadata's valid time
Metadata ' s valid time
cache_duration
Duration of the cache in seconds
Duration of the cache in seconds