Class AttributePrincipalPredicate

java.lang.Object
net.shibboleth.utilities.java.support.logic.StrategyIndirectedPredicate<ProfileRequestContext,​String>
net.shibboleth.idp.attribute.resolver.logic.AttributePrincipalPredicate
All Implemented Interfaces:
Predicate<ProfileRequestContext>, Predicate<ProfileRequestContext>

public class AttributePrincipalPredicate
extends StrategyIndirectedPredicate<ProfileRequestContext,​String>
Predicate that evaluates a ProfileRequestContext by looking for an attribute subject that matches one of a designated set or a generic predicate. The ID is obtained from a lookup function, by default from a AttributeResolutionContext child of the profile request context.
  • Constructor Details

    • AttributePrincipalPredicate

      public AttributePrincipalPredicate​(@Nonnull @NonnullElements Collection<String> candidates)
      Constructor.
      Parameters:
      candidates - hardwired set of values to check against
    • AttributePrincipalPredicate

      public AttributePrincipalPredicate​(@Nonnull Predicate<String> pred)
      Constructor.
      Parameters:
      pred - generalized predicate