@Override
    public boolean supports(final AuthenticationResult authenticationResult, final Service service) {
        val authentication = authenticationResult.getAuthentication();
        LOGGER.debug("Checking if service ticket generation is allowed for [{}] and [{}]", authentication, service);
        return findSurrogateCredentialTrait(authentication).isPresent();
    }
This is {@link SurrogateServiceTicketGeneratorAuthority}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-surrogate-core/src/main/java/org/apereo/cas/ticket/SurrogateServiceTicketGeneratorAuthority.java