Exception: SAML2::InvalidAttributeValue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(requested_attribute, provided_value) ⇒ InvalidAttributeValue

Returns a new instance of InvalidAttributeValue.



36
37
38
39
40
41
# File 'lib/saml2/attribute_consuming_service.rb', line 36

def initialize(requested_attribute, provided_value)
  super("Attribute #{requested_attribute.name} is provided value " \
    "#{provided_value.inspect}, but only allows "                  \
    "#{Array.wrap(requested_attribute.value).inspect}")
  @requested_attribute, @provided_value = requested_attribute, provided_value
end

Instance Attribute Details

#provided_valueObject (readonly)

Returns the value of attribute provided_value.



34
35
36
# File 'lib/saml2/attribute_consuming_service.rb', line 34

def provided_value
  @provided_value
end

#requested_attributeObject (readonly)

Returns the value of attribute requested_attribute.



34
35
36
# File 'lib/saml2/attribute_consuming_service.rb', line 34

def requested_attribute
  @requested_attribute
end