@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @Bean
        @ConditionalOnMissingBean(name = JwtBuilder.TICKET_JWT_BUILDER_BEAN_NAME)
        public JwtBuilder tokenTicketJwtBuilder(
            @Qualifier(WebApplicationService.BEAN_NAME_FACTORY)
            final ServiceFactory<WebApplicationService> webApplicationServiceFactory,
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties,
            @Qualifier(PrincipalResolver.BEAN_NAME_PRINCIPAL_RESOLVER)
            final PrincipalResolver defaultPrincipalResolver,
            @Qualifier("tokenCipherExecutor")
            final CipherExecutor tokenCipherExecutor,
            @Qualifier(ServicesManager.BEAN_NAME)
            final ServicesManager servicesManager) {
            return new JwtBuilder(tokenCipherExecutor, applicationContext, servicesManager, defaultPrincipalResolver,
                new RegisteredServiceJwtTicketCipherExecutor(), webApplicationServiceFactory, casProperties);
        }
This is {@link TokenCoreConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-token-core/src/main/java/org/apereo/cas/config/TokenCoreConfiguration.java