Class: OneLogin::RubySaml::Metadata
- Inherits:
-
Object
- Object
- OneLogin::RubySaml::Metadata
- Defined in:
- lib/onelogin/ruby-saml/metadata.rb
Overview
SAML2 Metadata. XML Metadata Builder
Instance Method Summary collapse
-
#generate(settings, pretty_print = false, valid_until = nil, cache_duration = nil) ⇒ String
Return SP metadata based on the settings.
Instance Method Details
#generate(settings, pretty_print = false, valid_until = nil, cache_duration = nil) ⇒ String
Return SP metadata based on the settings.
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/onelogin/ruby-saml/metadata.rb', line 22 def generate(settings, pretty_print=false, valid_until=nil, cache_duration=nil) = XMLSecurity::Document.new add_xml_declaration() root = add_root_element(, settings, valid_until, cache_duration) sp_sso = add_sp_sso_element(root, settings) add_sp_certificates(sp_sso, settings) add_sp_service_elements(sp_sso, settings) add_extras(root, settings) (, settings) output_xml(, pretty_print) end |