class
Saml::Metadata
- Saml::Metadata
- Reference
- Object
Overview
SAML2 Metadata. XML Metadata Builder
Defined in:
saml/metadata.crConstant Summary
-
ASSERTION =
"urn:oasis:names:tc:SAML:2.0:assertion" -
DSIG =
"http://www.w3.org/2000/09/xmldsig#" -
METADATA =
"urn:oasis:names:tc:SAML:2.0:metadata" -
XML_DECLARATION =
"<?xml version='1.0' encoding='UTF-8'?>" -
Kept as REXML wrote it so existing consumers see the same bytes.
Instance Method Summary
-
#generate(settings : Settings, pretty_print = false, valid_until : Time | Nil = nil, cache_duration : Int | Nil = nil) : String
Return SP metadata based on the settings.
Instance Method Detail
def generate(settings : Settings, pretty_print = false, valid_until : Time | Nil = nil, cache_duration : Int | Nil = nil) : String
#
Return SP metadata based on the settings. @param settings [Saml::Settings] Toolkit settings @param pretty_print [Boolean] Pretty print or not the response (No pretty print if you gonna validate the signature) @param valid_until [Time] Metadata's valid time @param cache_duration [Integer] Duration of the cache in seconds @return [String] XML Metadata of the Service Provider