Class AemCryptoEncryptHelper
- java.lang.Object
-
- io.wcm.devops.conga.plugins.aem.handlebars.helper.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 Summary
Fields Modifier and Type Field Description static String
HASH_IGNORE_MISSING_KEY
If set to true, missing crypto key is ignored and the input string is inserted unencrypted.static String
NAME
Plugin/Helper name
-
Constructor Summary
Constructors Constructor Description AemCryptoEncryptHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply(Object context, com.github.jknack.handlebars.Options options, io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext pluginContext)
String
getName()
-
-
-
Field Detail
-
NAME
public static final String NAME
Plugin/Helper name- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceio.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 interfaceio.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
- Throws:
IOException
-
-