Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

shibboleth.Conditions.AND is a conjunction and returns true if all the provided Predicates return true, and short-circuits if one returns false.

shibboleth.Conditions.OR is a disjunction and returns true if any one of the provided Predicates returns true (and stops at that point).

shibboleth.BiConditions.AND 4.1 is a conjunction and returns true if all the provided BiPredicates return true, and short-circuits if one returns false.

shibboleth.BiConditions.OR 4.1 is a disjunction and returns true if any one of the provided BiPredicates returns true (and stops at that point).

...

The following example returns true if the relying party name is one of three possible values. Note that this is a contrived example since theĀ shibboleth.Conditions.RelyingPartyId bean itself can take a list of candidate names, but it shows the syntax.

...

Match if the relying party is one of three elemets
Code Block
languagexml
<bean id="MyCondition" parent="shibboleth.Conditions.OR">
	<constructor-arg>
		<list>
			<bean parent="shibboleth.Conditions.RelyingPartyId" c:candidate="https://sp.example.com/shibboleth" />
			<bean parent="shibboleth.Conditions.RelyingPartyId" c:candidate="https://my.example.com/shibboleth" />
			<bean parent="shibboleth.Conditions.RelyingPartyId" c:candidate="https://another.example.com/shibboleth" />
		</list>
	</constructor-arg>
</bean>

...