Module: Saml::Kit::XmlTemplatable
- Includes:
- Xml::Kit::Templatable
- Included in:
- Builders::Assertion, Builders::AuthenticationRequest, Builders::EncryptedAssertion, Builders::IdentityProviderMetadata, Builders::LogoutRequest, Builders::LogoutResponse, Builders::Metadata, Builders::Response, Builders::ServiceProviderMetadata
- Defined in:
- lib/saml/kit/xml_templatable.rb
Instance Method Summary collapse
- #digest_method ⇒ Object
-
#sign? ⇒ Boolean
Returns true if an embedded signature is requested and at least one signing certificate is available via the configuration.
- #signature_method ⇒ Object
- #signing_key_pair ⇒ Object
- #template_path ⇒ Object
Instance Method Details
#digest_method ⇒ Object
18 19 20 |
# File 'lib/saml/kit/xml_templatable.rb', line 18 def digest_method configuration.digest_method end |
#sign? ⇒ Boolean
Returns true if an embedded signature is requested and at least one signing certificate is available via the configuration.
13 14 15 16 |
# File 'lib/saml/kit/xml_templatable.rb', line 13 def sign? return configuration.sign? if .nil? && configuration.sign? end |
#signature_method ⇒ Object
22 23 24 |
# File 'lib/saml/kit/xml_templatable.rb', line 22 def signature_method configuration.signature_method end |
#signing_key_pair ⇒ Object
26 27 28 |
# File 'lib/saml/kit/xml_templatable.rb', line 26 def signing_key_pair configuration.key_pairs(use: :signing).last end |
#template_path ⇒ Object
6 7 8 9 10 |
# File 'lib/saml/kit/xml_templatable.rb', line 6 def template_path root_path = File.(File.dirname(__FILE__)) template_name = "#{self.class.name.split("::").last.underscore}.builder" File.join(root_path, "builders/templates/", template_name) end |