@Bean
    @ConditionalOnMissingBean(name = "radiusTokenComponentSerializationPlanConfigurer")
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public ComponentSerializationPlanConfigurer radiusTokenComponentSerializationPlanConfigurer(
        final ConfigurableApplicationContext applicationContext) {
        return BeanSupplier.of(ComponentSerializationPlanConfigurer.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> plan -> plan.registerSerializableClass(RadiusTokenCredential.class))
            .otherwiseProxy()
            .get();
    }
This is {@link RadiusTokenAuthenticationComponentSerializationConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-radius-mfa/src/main/java/org/apereo/cas/config/RadiusTokenAuthenticationComponentSerializationConfiguration.java