Class: RSAML::AuthnContext::AuthenticationContextDeclaration

Inherits:
Object
  • Object
show all
Defined in:
lib/rsaml/authn_context/authentication_context_declaration.rb

Overview

A particular assertion on an identity provider’s part with respect to the authentication context associated with an authentication assertion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authn_method) ⇒ AuthenticationContextDeclaration

Returns a new instance of AuthenticationContextDeclaration.



12
13
14
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 12

def initialize(authn_method)
  @authn_method = authn_method
end

Instance Attribute Details

#authn_methodObject

Authentication method, a required attribute



7
8
9
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 7

def authn_method
  @authn_method
end

#idObject

Optional ID for the authentication context declaration



10
11
12
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 10

def id
  @id
end

Instance Method Details

#extensionsObject



32
33
34
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 32

def extensions
  @extensions ||= []
end

#governing_agreementsObject



28
29
30
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 28

def governing_agreements
  @governing_agreements ||= []
end

#identificationObject



16
17
18
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 16

def identification
  @identification ||= []
end

#operational_protectionObject



24
25
26
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 24

def operational_protection
  @operational_protection ||= []
end

#technical_protectionObject



20
21
22
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 20

def technical_protection
  @technical_protection ||= []
end

#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object

Construct an XML fragment representing the assertion



37
38
39
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 37

def to_xml(xml=Builder::XmlMarkup.new)
  xml.tag!('AuthContextDecl')
end