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

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-yubikey/src/main/java/org/apereo/cas/config/YubiKeyComponentSerializationConfiguration.java