lib/saml2/key.rb in saml2-1.0.8 vs lib/saml2/key.rb in saml2-1.0.9

- old
+ new

@@ -36,18 +36,18 @@ def fingerprint @fingerprint ||= Digest::SHA1.hexdigest(certificate.to_der).gsub(/(\h{2})(?=\h)/, '\1:') end def build(builder) - builder['md'].KeyDescriptor do |builder| - builder.parent['use'] = use if use - builder['dsig'].KeyInfo do |builder| - builder['dsig'].X509Data do |builder| - builder['dsig'].X509Certificate(x509) + builder['md'].KeyDescriptor do |key_descriptor| + key_descriptor.parent['use'] = use if use + key_descriptor['dsig'].KeyInfo do |key_info| + key_info['dsig'].X509Data do |x509_data| + x509_data['dsig'].X509Certificate(x509) end end encryption_methods.each do |method| - builder['xenc'].EncryptionMethod('Algorithm' => method) + key_descriptor['xenc'].EncryptionMethod('Algorithm' => method) end end end end end