Class Sha256Filter
java.lang.Object
io.pebbletemplates.pebble.extension.core.Sha256Filter
- All Implemented Interfaces:
Filter
,NamedArguments
This class implements the 'sha256' filter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) private static String
bytesToHex
(byte[] bytes)
-
Field Details
-
FILTER_NAME
- See Also:
-
-
Constructor Details
-
Sha256Filter
public Sha256Filter()
-
-
Method Details
-
getArgumentNames
- Specified by:
getArgumentNames
in interfaceNamedArguments
-
apply
public Object apply(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) throws PebbleException- Specified by:
apply
in interfaceFilter
- Throws:
PebbleException
-
bytesToHex
-