@EventDriven @SideEffectFree @SupportsBatching @Tags(value={"content","hash","sha","blake2","md5","cryptography"}) @InputRequirement(value=INPUT_REQUIRED) @CapabilityDescription(value="Calculates a cryptographic hash value for the flowfile content using the given algorithm and writes it to an output attribute. Please refer to https://csrc.nist.gov/Projects/Hash-Functions/NIST-Policy-on-Hash-Functions for help to decide which algorithm to use.") @WritesAttribute(attribute="content_<algorithm>", description="This processor adds an attribute whose value is the result of hashing the flowfile content. The name of this attribute is specified by the value of the algorithm, e.g. \'content_SHA-256\'.") public class CryptographicHashContent extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) static PropertyDescriptor |
FAIL_WHEN_EMPTY |
(package private) static PropertyDescriptor |
HASH_ALGORITHM |
private static List<PropertyDescriptor> |
properties |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
private static Set<Relationship> |
relationships |
| Constructor and Description |
|---|
CryptographicHashContent() |
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final PropertyDescriptor FAIL_WHEN_EMPTY
static final PropertyDescriptor HASH_ALGORITHM
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
private static Set<Relationship> relationships
private static List<PropertyDescriptor> properties
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorpublic Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractProcessorCopyright © 2023 Apache NiFi Project. All rights reserved.