Class MetadataProviderPredicates
java.lang.Object
se.swedenconnect.opensaml.saml2.metadata.provider.MetadataProviderPredicates
A number of predicates that may be installed as filters for a metadata provider.
- Author:
- Martin Lindström (martin@idsec.se)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<EntityDescriptor> Returns a predicate that evaluates totrueif the supplied entity descriptor represents an IdP.static Predicate<EntityDescriptor> includeOnlyIDPsAndMe(String entityID) Returns a predicate that evaluates totrueif the supplied entity descriptor represents an IdP or if the entity descriptor is "my" entry (typically the SP).static Predicate<EntityDescriptor> Returns a predicate that evaluates totrueif the supplied entity descriptor represents an SP.static booleanTells whether the supplied entity descriptor is an IdP.static booleanisSP(EntityDescriptor ed) Tells whether the supplied entity descriptor is an SP.
-
Method Details
-
includeOnlyIDPs
Returns a predicate that evaluates totrueif the supplied entity descriptor represents an IdP.- Returns:
- predicate for filtering IdPs
-
includeOnlyIDPsAndMe
Returns a predicate that evaluates totrueif the supplied entity descriptor represents an IdP or if the entity descriptor is "my" entry (typically the SP).- Parameters:
entityID- the entityID for the entity descriptor to include even if it's not an IdP- Returns:
- predicate for filtering IdPs and "my" entity
-
includeOnlySPs
Returns a predicate that evaluates totrueif the supplied entity descriptor represents an SP.- Returns:
- predicate for filtering SPs
-
isIDP
Tells whether the supplied entity descriptor is an IdP.- Parameters:
ed- the entity descriptor to test- Returns:
trueif the entity descriptor represents an IdP andfalseotherwise
-
isSP
Tells whether the supplied entity descriptor is an SP.- Parameters:
ed- the entity descriptor to test- Returns:
trueif the entity descriptor represents an SP andfalseotherwise
-