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.

Parameters:



80
81
82
83
84
85
86
# File 'lib/saml2/attribute_consuming_service.rb', line 80

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 = requested_attribute
  @provided_value = provided_value
end

Instance Attribute Details

#provided_valueObject (readonly)

Returns the value of attribute provided_value.



77
78
79
# File 'lib/saml2/attribute_consuming_service.rb', line 77

def provided_value
  @provided_value
end

#requested_attributeRequestedAttribute (readonly)

Returns:



76
77
78
# File 'lib/saml2/attribute_consuming_service.rb', line 76

def requested_attribute
  @requested_attribute
end