public class MetadataProviderPredicates extends Object
| Modifier and Type | Method and Description |
|---|---|
static Predicate<EntityDescriptor> |
includeOnlyIDPs()
Returns a predicate that evaluates to
true if the supplied entity descriptor represents an IdP. |
static Predicate<EntityDescriptor> |
includeOnlyIDPsAndMe(String entityID)
Returns a predicate that evaluates to
true if 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 to
true if the supplied entity descriptor represents an SP. |
static Predicate<EntityDescriptor> |
includeOnlyUsableIdPs(EntityDescriptor sp,
boolean includeMyself)
Returns a predicate that evaluates to
true if 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 boolean |
isIDP(EntityDescriptor ed)
Tells whether the supplied entity descriptor is an IdP.
|
static boolean |
isMatchingIDP(EntityDescriptor sp,
EntityDescriptor idp) |
static boolean |
isSP(EntityDescriptor ed)
Tells whether the supplied entity descriptor is an SP.
|
public static Predicate<EntityDescriptor> includeOnlyIDPs()
true if the supplied entity descriptor represents an IdP.public static Predicate<EntityDescriptor> includeOnlyIDPsAndMe(String entityID)
true if the supplied entity descriptor represents an IdP or if the
entity descriptor is "my" entry (typically the SP).entityID - the entityID for the entity descriptor to include even if it's not an IdPpublic static Predicate<EntityDescriptor> includeOnlySPs()
true if the supplied entity descriptor represents an SP.public static Predicate<EntityDescriptor> includeOnlyUsableIdPs(EntityDescriptor sp, boolean includeMyself)
true if the supplied entity descriptor is an IdP and that it contains
entity categories that matches the entity categories in the SP entity descriptor (sp).sp - the SP entity descriptorincludeMyself - should the SP entity descriptor be included as well as matching IdPs?public static boolean isIDP(EntityDescriptor ed)
ed - the entity descriptor to testtrue if the entity descriptor represents an IdP and false otherwisepublic static boolean isSP(EntityDescriptor ed)
ed - the entity descriptor to testtrue if the entity descriptor represents an SP and false otherwisepublic static boolean isMatchingIDP(EntityDescriptor sp, EntityDescriptor idp)
Copyright © 2018 Litsec AB. All rights reserved.