protected Resource resolveContentToResource(final String decodedContent) {
        if (CasConfigurationJasyptCipherExecutor.isValueEncrypted(decodedContent)) {
            val cipher = new CasConfigurationJasyptCipherExecutor(applicationContext.getEnvironment());
            return new ByteArrayResource(cipher.decryptValue(decodedContent).getBytes(StandardCharsets.UTF_8));
        }
        return getResource(decodedContent);
    }
This is {@link AbstractSamlIdPMetadataLocator}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/locator/AbstractSamlIdPMetadataLocator.java