Class ExactPrincipalEvalPredicateFactory.ExactMatchPredicate

  • All Implemented Interfaces:
    Predicate<net.shibboleth.idp.authn.principal.PrincipalSupportingComponent>, net.shibboleth.idp.authn.principal.PrincipalEvalPredicate
    Enclosing class:
    ExactPrincipalEvalPredicateFactory

    private class ExactPrincipalEvalPredicateFactory.ExactMatchPredicate
    extends Object
    implements net.shibboleth.idp.authn.principal.PrincipalEvalPredicate
    Implementation of an exact-matching predicate.
    • Field Detail

      • principal

        @Nonnull
        private final Principal principal
        The principal object to compare against.
    • Constructor Detail

      • ExactMatchPredicate

        public ExactMatchPredicate​(@Nonnull
                                   Principal candidate)
        Constructor.
        Parameters:
        candidate - principal to compare against
    • Method Detail

      • test

        public boolean test​(@Nullable
                            net.shibboleth.idp.authn.principal.PrincipalSupportingComponent input)
        Specified by:
        test in interface Predicate<net.shibboleth.idp.authn.principal.PrincipalSupportingComponent>
      • getMatchingPrincipal

        @Nullable
        public Principal getMatchingPrincipal()
        Specified by:
        getMatchingPrincipal in interface net.shibboleth.idp.authn.principal.PrincipalEvalPredicate