Class: RSAML::AuthnContext::PhysicalVerification
- Inherits:
-
Object
- Object
- RSAML::AuthnContext::PhysicalVerification
- Defined in:
- lib/rsaml/authn_context/physical_verification.rb
Overview
This element indicates that identification has been performed in a physical face-to-face meeting with the principal and not in an online manner.
Instance Attribute Summary collapse
-
#credential_level ⇒ Object
Returns the value of attribute credential_level.
Class Method Summary collapse
-
.credential_levels ⇒ Object
Hash of available credential levels.
Instance Method Summary collapse
-
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Create an XML representation.
Instance Attribute Details
#credential_level ⇒ Object
Returns the value of attribute credential_level.
14 15 16 |
# File 'lib/rsaml/authn_context/physical_verification.rb', line 14 def credential_level @credential_level end |
Class Method Details
.credential_levels ⇒ Object
Hash of available credential levels
7 8 9 10 11 12 |
# File 'lib/rsaml/authn_context/physical_verification.rb', line 7 def self.credential_levels { :primary => 'primary', :secondary => 'secondary' } end |
Instance Method Details
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
Create an XML representation
17 18 19 20 21 |
# File 'lib/rsaml/authn_context/physical_verification.rb', line 17 def to_xml(xml=Builder::XmlMarkup.new) attributes = {} attributes['credentialLevel'] = credential_level unless credential_level.nil? xml.tag!('PhysicalVerification', attributes) end |