Sha256: a40fc522bc6241fad8e0adcb31bcb23c6cbb8b9fcc455e77c9fcca7f8334a629

Contents?: true

Size: 836 Bytes

Versions: 5

Compression:

Stored size: 836 Bytes

Contents

# frozen_string_literal: true

module Saml
  module Kit
    class NullAssertion
      include ActiveModel::Validations
      include Translatable
      validate :invalid

      def issuer; end

      def name_id; 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 invalid
        errors[:assertion].push(error_message(:invalid))
      end

      def name
        'NullAssertion'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saml-kit-1.0.14 lib/saml/kit/null_assertion.rb
saml-kit-1.0.13 lib/saml/kit/null_assertion.rb
saml-kit-1.0.12 lib/saml/kit/null_assertion.rb
saml-kit-1.0.11 lib/saml/kit/null_assertion.rb
saml-kit-1.0.10 lib/saml/kit/null_assertion.rb