Class: Saml::Kit::Assertion

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/kit/core_ext/assertion.rb

Constant Summary collapse

TABLE =
{
  'Assertion Present?' => ->(x) { x.present? },
  'Issuer' => ->(x) { x.issuer },
  'Name Id' => ->(x) { x.name_id },
  'Attributes' => ->(x) { x.attributes.inspect },
  'Not Before' => ->(x) { x.started_at },
  'Not After' => ->(x) { x.expired_at },
  'Audiences' => ->(x) { x.audiences.inspect },
  'Encrypted?' => ->(x) { x.encrypted? },
  'Decryptable' => ->(x) { x.decryptable? },
}.freeze

Instance Method Summary collapse

Instance Method Details

#build_table(table = []) ⇒ Object



18
19
20
21
22
23
# File 'lib/saml/kit/core_ext/assertion.rb', line 18

def build_table(table = [])
  TABLE.each do |key, callable|
    table.push([key, callable.call(self)])
  end
  signature.build_table(table)
end