@Bean
    @ConditionalOnMissingBean(name = "tokenComponentSerializationPlanConfigurer")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public ComponentSerializationPlanConfigurer tokenComponentSerializationPlanConfigurer() {
        return plan -> plan.registerSerializableClass(TokenCredential.class);
    }
This is {@link TokenCoreComponentSerializationConfiguration}.

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