Class AemCryptoEncryptHelper

  • All Implemented Interfaces:
    io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>, io.wcm.devops.conga.generator.spi.Plugin

    public final class AemCryptoEncryptHelper
    extends Object
    implements io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
    Handlebars helper that encrypts a given string with AEM crypto key.
    • Field Detail

      • HASH_IGNORE_MISSING_KEY

        public static final String HASH_IGNORE_MISSING_KEY
        If set to true, missing crypto key is ignored and the input string is inserted unencrypted.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AemCryptoEncryptHelper

        public AemCryptoEncryptHelper()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface io.wcm.devops.conga.generator.spi.Plugin
      • apply

        public Object apply​(Object context,
                            com.github.jknack.handlebars.Options options,
                            io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext pluginContext)
                     throws IOException
        Specified by:
        apply in interface io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
        Throws:
        IOException