Class: RSAML::AuthnContext::PhysicalVerification

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#credential_levelObject

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_levelsObject

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