default boolean isWildcardedAccount(final Collection<String> accounts, final Optional<? extends Service> service) {
        return accounts.size() == 1 && accounts.contains(SurrogateAuthenticationService.WILDCARD_ACCOUNT);
    }
Is wildcarded account accepted and found in the given accounts?.

@param accounts the accounts
@param service  the service
@return true /false
support/cas-server-support-surrogate-api/src/main/java/org/apereo/cas/authentication/surrogate/SurrogateAuthenticationService.java