The predicate bean named shibboleth.Conditions.Expression executes a Spring Expression Language (SpEL) expression against a ProfileRequestContext to produce a true/false result.
An Expression Predicate is instantiated by simply supplying a string argument that contains a SpEL expression.
Example
<bean id="MyCondition" parent="shibboleth.Conditions.Expression" c:expression="#input.isBrowserProfile()" />
Reference
Properties
The following additional bean properties are available:
PropertyName | Type | Default | Description |
---|---|---|---|
customObject | Bean/Reference | An object to make available to the script via a variable named | |
returnOnError | boolean | false | What to return if the expression fails |
hideExceptions | boolean | false | If true, then the |
Expression Context
The expression context will have two variables populated:
input
- the ProfileRequestContext being evaluatedcustom
- the object set via thecustomObject
property, if any