Exception: SAML2::InvalidAttributeValue
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SAML2::InvalidAttributeValue
- Defined in:
- lib/saml2/attribute_consuming_service.rb
Instance Attribute Summary collapse
-
#provided_value ⇒ Object
readonly
Returns the value of attribute provided_value.
-
#requested_attribute ⇒ Object
readonly
Returns the value of attribute requested_attribute.
Instance Method Summary collapse
-
#initialize(requested_attribute, provided_value) ⇒ InvalidAttributeValue
constructor
A new instance of InvalidAttributeValue.
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_value ⇒ Object (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_attribute ⇒ Object (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 |