Class: Saml::Kit::InvalidDocument

Inherits:
Document
  • Object
show all
Defined in:
lib/saml/kit/invalid_document.rb

Overview

This class represents an invalid SAML document that could not be parsed.

Constant Summary

Constants inherited from Document

Document::CONSTRUCTORS, Document::XPATH

Constants included from XsdValidatable

XsdValidatable::METADATA_XSD, XsdValidatable::PROTOCOL_XSD

Constants included from XmlParseable

XmlParseable::NAMESPACES

Instance Attribute Summary

Attributes inherited from Document

#name, #registry

Instance Method Summary collapse

Methods inherited from Document

#destination, #id, #issue_instant, #issuer, to_saml_document, #version

Methods included from XmlParseable

#present?, #to_s, #to_xhtml, #to_xml

Methods included from Trustable

#signed?, #trusted?

Constructor Details

#initialize(xml) ⇒ InvalidDocument


13
14
15
# File 'lib/saml/kit/invalid_document.rb', line 13

def initialize(xml, *)
  super(xml, name: 'InvalidDocument')
end

Instance Method Details

#to_hObject


17
18
19
20
21
# File 'lib/saml/kit/invalid_document.rb', line 17

def to_h
  super
rescue StandardError
  {}
end