Class: Saml::Kit::Builders::Assertion

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Templatable
Defined in:
lib/saml/kit/builders/assertion.rb

Instance Attribute Summary

Attributes included from Templatable

#embed_signature

Instance Method Summary collapse

Methods included from Templatable

#encrypt?, #encryption_for, #render, #sign=, #sign?, #signature_for, #signatures, #to_xml

Constructor Details

#initialize(response_builder) ⇒ Assertion

Returns a new instance of Assertion.



10
11
12
# File 'lib/saml/kit/builders/assertion.rb', line 10

def initialize(response_builder)
  @response_builder = response_builder
end

Instance Method Details

#assertion_attributesObject



22
23
24
# File 'lib/saml/kit/builders/assertion.rb', line 22

def assertion_attributes
  user.assertion_attributes_for(request)
end

#name_idObject



18
19
20
# File 'lib/saml/kit/builders/assertion.rb', line 18

def name_id
  user.name_id_for(name_id_format)
end

#name_id_formatObject



14
15
16
# File 'lib/saml/kit/builders/assertion.rb', line 14

def name_id_format
  request.name_id_format
end