Commit c550e8c

mo <mo.khan@gmail.com>
2017-12-15 18:24:20
remove fingerprint method and delegate to certificate.
1 parent 82d839d
Changed files (1)
lib
lib/saml/kit/trustable.rb
@@ -17,11 +17,6 @@ module Saml
         Saml::Kit::Certificate.new(value, use: :signing)
       end
 
-      def fingerprint
-        return if certificate.blank?
-        certificate.fingerprint
-      end
-
       def signed?
         to_h.fetch(name, {}).fetch('Signature', nil).present?
       end
@@ -29,7 +24,7 @@ module Saml
       def trusted?
         return false if provider.nil?
         return false unless signed?
-        provider.matches?(fingerprint, use: :signing)
+        provider.matches?(certificate.fingerprint, use: :signing)
       end
 
       def provider