The Shibboleth IdP V4 software has reached its End of Life and is no longer supported. This documentation is available for historical purposes only. See the IDP5 wiki space for current documentation on the supported version.

ExpressionPredicate

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

The following additional bean properties are available:

Name

Type

Default

Description

Name

Type

Default

Description

customObject

Bean/Reference

 

An object to make available to the script via a variable named custom

returnOnError

boolean

false

What to return if the expression fails

hideExceptions

boolean

false

If true, then the returnOnError value is returned if the expression raises an exception, otherwise the exception is passed out

The expression context will have two variables populated:

  • input - the ProfileRequestContext being evaluated

  • custom - the object set via the customObject property, if any

Â