@Override
    public boolean isWildcardedAccount(final String surrogate, final Principal principal, final Optional<? extends Service> givenService) {
        return isImpersonationAllowedFor(givenService)
            && surrogateServices.stream().anyMatch(Unchecked.predicate(impl -> impl.isWildcardedAccount(surrogate, principal, givenService)));
    }
This is {@link ChainingSurrogateAuthenticationService}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-surrogate-core/src/main/java/org/apereo/cas/authentication/surrogate/ChainingSurrogateAuthenticationService.java