Class InexactPrincipalEvalPredicateFactory.InexactMatchPredicate

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

    private class InexactPrincipalEvalPredicateFactory.InexactMatchPredicate
    extends Object
    implements net.shibboleth.idp.authn.principal.PrincipalEvalPredicate
    Implementation of an inexact-matching predicate.
    • Field Detail

      • principal

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

        @Nullable
        private Principal theMatch
        The principal object that matched.
    • Constructor Detail

      • InexactMatchPredicate

        public InexactMatchPredicate​(@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