Class: RSAML::AuthnContext::AuthenticationContextDeclaration
- Inherits:
-
Object
- Object
- RSAML::AuthnContext::AuthenticationContextDeclaration
- 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
-
#authn_method ⇒ Object
Authentication method, a required attribute.
-
#id ⇒ Object
Optional ID for the authentication context declaration.
Instance Method Summary collapse
- #extensions ⇒ Object
- #governing_agreements ⇒ Object
- #identification ⇒ Object
-
#initialize(authn_method) ⇒ AuthenticationContextDeclaration
constructor
A new instance of AuthenticationContextDeclaration.
- #operational_protection ⇒ Object
- #technical_protection ⇒ Object
-
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Construct an XML fragment representing the assertion.
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_method ⇒ Object
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 |
#id ⇒ Object
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
#extensions ⇒ Object
32 33 34 |
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 32 def extensions @extensions ||= [] end |
#governing_agreements ⇒ Object
28 29 30 |
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 28 def governing_agreements @governing_agreements ||= [] end |
#identification ⇒ Object
16 17 18 |
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 16 def identification @identification ||= [] end |
#operational_protection ⇒ Object
24 25 26 |
# File 'lib/rsaml/authn_context/authentication_context_declaration.rb', line 24 def operational_protection @operational_protection ||= [] end |
#technical_protection ⇒ Object
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 |