Class MetadataProviderPredicates
- java.lang.Object
- 
- se.litsec.opensaml.saml2.metadata.provider.MetadataProviderPredicates
 
- 
 public class MetadataProviderPredicates extends Object A number of predicates that may be installed as filters for a metadata provider.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate<EntityDescriptor>includeOnlyIDPs()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>includeOnlySPs()Returns a predicate that evaluates totrueif the supplied entity descriptor represents an SP.static Predicate<EntityDescriptor>includeOnlyUsableIdPs(EntityDescriptor sp, boolean includeMyself)Returns a predicate that evaluates totrueif the supplied entity descriptor is an IdP and that it contains entity categories that matches the entity categories in the SP entity descriptor (sp).static booleanisIDP(EntityDescriptor ed)Tells whether the supplied entity descriptor is an IdP.static booleanisMatchingIDP(EntityDescriptor sp, EntityDescriptor idp)static booleanisSP(EntityDescriptor ed)Tells whether the supplied entity descriptor is an SP.
 
- 
- 
- 
Method Detail- 
includeOnlyIDPspublic static Predicate<EntityDescriptor> includeOnlyIDPs() Returns a predicate that evaluates totrueif the supplied entity descriptor represents an IdP.- Returns:
- predicate for filtering IdPs
 
 - 
includeOnlyIDPsAndMepublic 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).- 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
 
 - 
includeOnlySPspublic static Predicate<EntityDescriptor> includeOnlySPs() Returns a predicate that evaluates totrueif the supplied entity descriptor represents an SP.- Returns:
- predicate for filtering SPs
 
 - 
includeOnlyUsableIdPspublic static Predicate<EntityDescriptor> includeOnlyUsableIdPs(EntityDescriptor sp, boolean includeMyself) Returns a predicate that evaluates totrueif the supplied entity descriptor is an IdP and that it contains entity categories that matches the entity categories in the SP entity descriptor (sp).- Parameters:
- sp- the SP entity descriptor
- includeMyself- should the SP entity descriptor be included as well as matching IdPs?
- Returns:
- predicate for filtering matching IdPs
 
 - 
isIDPpublic static boolean isIDP(EntityDescriptor ed) Tells whether the supplied entity descriptor is an IdP.- Parameters:
- ed- the entity descriptor to test
- Returns:
- trueif the entity descriptor represents an IdP and- falseotherwise
 
 - 
isSPpublic static boolean isSP(EntityDescriptor ed) Tells whether the supplied entity descriptor is an SP.- Parameters:
- ed- the entity descriptor to test
- Returns:
- trueif the entity descriptor represents an SP and- falseotherwise
 
 - 
isMatchingIDPpublic static boolean isMatchingIDP(EntityDescriptor sp, EntityDescriptor idp) 
 
- 
 
-