Class: SAML2::AuthnStatement

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

Defined Under Namespace

Modules: Classes

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authn_context_class_refObject

Returns the value of attribute authn_context_class_ref.



16
17
18
# File 'lib/saml2/authn_statement.rb', line 16

def authn_context_class_ref
  @authn_context_class_ref
end

#authn_instantObject

Returns the value of attribute authn_instant.



16
17
18
# File 'lib/saml2/authn_statement.rb', line 16

def authn_instant
  @authn_instant
end

Instance Method Details

#build(builder) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/saml2/authn_statement.rb', line 18

def build(builder)
  builder['saml'].AuthnStatement('AuthnInstant' => authn_instant.iso8601) do |builder|
    builder['saml'].AuthnContext do |builder|
      builder['saml'].AuthnContextClassRef(authn_context_class_ref) if authn_context_class_ref
    end
  end
end