Class: SAML::Core::AuthnStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/core/authn_statement.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authn_contextObject (readonly)

Returns the value of attribute authn_context.



9
10
11
# File 'lib/saml/core/authn_statement.rb', line 9

def authn_context
  @authn_context
end

#authn_instantObject (readonly)

Returns the value of attribute authn_instant.



5
6
7
# File 'lib/saml/core/authn_statement.rb', line 5

def authn_instant
  @authn_instant
end

#session_indexObject (readonly)

Returns the value of attribute session_index.



7
8
9
# File 'lib/saml/core/authn_statement.rb', line 7

def session_index
  @session_index
end

#session_not_on_or_afterObject (readonly)

Returns the value of attribute session_not_on_or_after.



6
7
8
# File 'lib/saml/core/authn_statement.rb', line 6

def session_not_on_or_after
  @session_not_on_or_after
end

Class Method Details

.from_xml(xml) ⇒ Object



11
# File 'lib/saml/core/authn_statement.rb', line 11

def self.from_xml(xml); new.from_xml(xml); end

Instance Method Details

#from_xml(xml) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/saml/core/authn_statement.rb', line 13

def from_xml(xml)
  @authn_instant           = xml.attributes['AuthnInstant']
  @session_not_on_or_after = xml.attributes['SessionNotOnOrAfter']
  @session_index           = xml.attributes['SessionIndex']

  self
end