Module: Saml::Kit::Trustable
Instance Method Summary collapse
-
#signed? ⇒ Boolean
Returns true when the document has an embedded XML Signature or has been verified externally.
-
#trusted? ⇒ Boolean
Returns true when documents is signed and the signing certificate belongs to a known service entity.
Instance Method Details
#signed? ⇒ Boolean
Returns true when the document has an embedded XML Signature or has been verified externally.
15 16 17 |
# File 'lib/saml/kit/trustable.rb', line 15 def signed? signature_manually_verified || signature.present? end |
#trusted? ⇒ Boolean
Returns true when documents is signed and the signing certificate belongs to a known service entity.
25 26 27 28 29 |
# File 'lib/saml/kit/trustable.rb', line 25 def trusted? return true if signature_manually_verified return false unless signed? signature.trusted?(provider) end |