Class: Saml::Elements::AuthnStatement

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/saml/elements/authn_statement.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AuthnStatement

Returns a new instance of AuthnStatement.



17
18
19
20
21
22
# File 'lib/saml/elements/authn_statement.rb', line 17

def initialize(*args)
  options = args.extract_options!
  @subject_locality = Saml::Elements::SubjectLocality.new(:address => options.delete(:address)) if options[:address]
  @authn_context = Saml::Elements::AuthnContext.new(:authn_context_class_ref => options.delete(:authn_context_class_ref)) if options[:authn_context_class_ref]
  super(*(args << options))
end