@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public ServiceTicketResourceEntityResponseFactoryConfigurer restTokenServiceTicketResourceEntityResponseFactoryConfigurer(
        @Qualifier(CentralAuthenticationService.BEAN_NAME)
        final CentralAuthenticationService centralAuthenticationService,
        @Qualifier(TokenTicketBuilder.BEAN_NAME)
        final TokenTicketBuilder tokenTicketBuilder,
        @Qualifier(ServicesManager.BEAN_NAME)
        final ServicesManager servicesManager,
        @Qualifier(TicketRegistrySupport.BEAN_NAME)
        final TicketRegistrySupport ticketRegistrySupport) {
        return plan -> plan.registerFactory(new JwtServiceTicketResourceEntityResponseFactory(centralAuthenticationService, tokenTicketBuilder, ticketRegistrySupport, servicesManager));
    }
This is {@link CasRestTokensAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-rest-tokens/src/main/java/org/apereo/cas/config/CasRestTokensAutoConfiguration.java