signed_xml 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/signed_xml/signature.rb +1 -5
- data/lib/signed_xml/version.rb +1 -1
- data/signed_xml.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34f747f9d030e996424bdb6329a3842bdeaeff2a
|
4
|
+
data.tar.gz: e821bb1877d4c0a551c63615ada1b9642166e569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ab5f61eba1d2d9b49dd075636a01bec808650a5d498ed84056a884554231a6a42fe9960b9bbc4f18131fddfaa92651b25cd21f55e3a03f37e25e845926711e
|
7
|
+
data.tar.gz: ffdbf5d477abe5bb0221d128670087b08c0d6ac087907d020ee0d40ce379bd6ce679f8e2592094657716281376f1a6317f3124aa71a64c2a2ee7a8f604e8f404
|
data/lib/signed_xml/signature.rb
CHANGED
@@ -88,15 +88,11 @@ module SignedXml
|
|
88
88
|
@signed_info ||= SignedInfo.new(here.at_xpath("//ds:SignedInfo", ds: XMLDSIG_NS))
|
89
89
|
end
|
90
90
|
|
91
|
-
def certificate_store
|
92
|
-
@certificate_store ||= {}
|
93
|
-
end
|
94
|
-
|
95
91
|
def public_key
|
96
92
|
# If the user provided a certificate store, we MUST only use a
|
97
93
|
# key which matches the one in the signature's KeyInfo. Otherwise,
|
98
94
|
# use the key in the signature.
|
99
|
-
@public_key ||=
|
95
|
+
@public_key ||= unless certificate_store.nil?
|
100
96
|
logger.debug "using cert store #{certificate_store}"
|
101
97
|
if certificate_store.has_key? x509_cert_fingerprint
|
102
98
|
certificate_store[x509_cert_fingerprint].public_key
|
data/lib/signed_xml/version.rb
CHANGED
data/signed_xml.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signed_xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: XML Signature verification
|
84
98
|
email:
|
85
99
|
- todd.thomas@openlogic.com
|
@@ -148,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
162
|
version: '0'
|
149
163
|
requirements: []
|
150
164
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.6.8
|
152
166
|
signing_key:
|
153
167
|
specification_version: 4
|
154
168
|
summary: Provides [incomplete] support for verification of XML Signatures <http://www.w3.org/TR/xmldsig-core>.
|