lib/saml/kit/builders/xml_signature.rb in saml-kit-0.2.13 vs lib/saml/kit/builders/xml_signature.rb in saml-kit-0.2.14

- old
+ new

@@ -17,15 +17,15 @@ SHA512: "http://www.w3.org/2001/04/xmlenc#sha512", }.freeze attr_reader :embed_signature, :configuration attr_reader :reference_id - attr_reader :x509_certificate + attr_reader :certificate - def initialize(reference_id, configuration:) + def initialize(reference_id, configuration:, certificate: ) @configuration = configuration @reference_id = reference_id - @x509_certificate = configuration.certificates(use: :signing).last.stripped + @certificate = certificate end def signature_method SIGNATURE_METHODS[configuration.signature_method] end