Commit 6c0d828
Changed files (1)
lib
saml
lib/saml/kit/null_assertion.rb
@@ -6,17 +6,46 @@ module Saml
validate :invalid
def issuer; end
+
def name_id; end
- def signed?; false end
+
+ def signed?
+ false
+ end
+
def signature; end
- def attributes; [] end
- def started_at; Time.at(0).to_datetime end
- def expired_at; Time.at(0).to_datetime end
- def audiences; [] end
- def encrypted?; false end
- def decryptable?; false end
- def present?; false end
- def to_xml(*args); "" end
+
+ def attributes
+ []
+ end
+
+ def started_at
+ Time.at(0).to_datetime
+ end
+
+ def expired_at
+ Time.at(0).to_datetime
+ end
+
+ def audiences
+ []
+ end
+
+ def encrypted?
+ false
+ end
+
+ def decryptable?
+ false
+ end
+
+ def present?
+ false
+ end
+
+ def to_xml(*_args)
+ ''
+ end
def invalid
errors[:assertion].push(error_message(:invalid))