lib/xml/kit/signature.rb in xml-kit-0.1.11 vs lib/xml/kit/signature.rb in xml-kit-0.1.12
- old
+ new
@@ -1,20 +1,22 @@
+# frozen_string_literal: true
+
module Xml
module Kit
class Signature
SIGNATURE_METHODS = {
- SHA1: "http://www.w3.org/2000/09/xmldsig#rsa-sha1",
- SHA224: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224",
- SHA256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
- SHA384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384",
- SHA512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512",
+ SHA1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
+ SHA224: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha224',
+ SHA256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
+ SHA384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
+ SHA512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
}.freeze
DIGEST_METHODS = {
- SHA1: "http://www.w3.org/2000/09/xmldsig#SHA1",
- SHA224: "http://www.w3.org/2001/04/xmldsig-more#sha224",
- SHA256: "http://www.w3.org/2001/04/xmlenc#sha256",
- SHA384: "http://www.w3.org/2001/04/xmldsig-more#sha384",
- SHA512: "http://www.w3.org/2001/04/xmlenc#sha512",
+ SHA1: 'http://www.w3.org/2000/09/xmldsig#SHA1',
+ SHA224: 'http://www.w3.org/2001/04/xmldsig-more#sha224',
+ SHA256: 'http://www.w3.org/2001/04/xmlenc#sha256',
+ SHA384: 'http://www.w3.org/2001/04/xmldsig-more#sha384',
+ SHA512: 'http://www.w3.org/2001/04/xmlenc#sha512',
}.freeze
attr_reader :certificate
attr_reader :digest_method
attr_reader :reference_id