@ConditionalOnMissingBean(name = "consentCipherExecutor")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CipherExecutor consentCipherExecutor(final CasConfigurationProperties casProperties) {
            val consent = casProperties.getConsent().getCore();
            val crypto = consent.getCrypto();
            if (crypto.isEnabled()) {
                return CipherExecutorUtils.newStringCipherExecutor(crypto, AttributeReleaseConsentCipherExecutor.class);
            }
            LOGGER.debug("Consent attributes stored by CAS are not signed/encrypted.");
            return CipherExecutor.noOp();
        }
This is {@link CasConsentCoreAutoConfiguration}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/config/CasConsentCoreAutoConfiguration.java