@Deprecated @DeprecationNotice(classNames="org.apache.nifi.processors.standard.CryptographicHashContent", reason="This processor is deprecated and may be removed in future releases.") @EventDriven @SupportsBatching @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"hash","content","MD5","SHA-1","SHA-256"}) @CapabilityDescription(value="Calculates a hash value for the Content of a FlowFile and puts that hash value on the FlowFile as an attribute whose name is determined by the <Hash Attribute Name> property. This processor did not provide a consistent offering of hash algorithms, and is now deprecated. For modern cryptographic hashing capabilities, see \"CryptographicHashContent\". ") @WritesAttribute(attribute="<Hash Attribute Name>", description="This Processor adds an attribute whose value is the result of Hashing the existing FlowFile content. The name of this attribute is specified by the <Hash Attribute Name> property") public class HashContent extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
ATTRIBUTE_NAME
Deprecated.
|
static PropertyDescriptor |
HASH_ALGORITHM
Deprecated.
|
private List<PropertyDescriptor> |
properties
Deprecated.
|
static Relationship |
REL_FAILURE
Deprecated.
|
static Relationship |
REL_SUCCESS
Deprecated.
|
private Set<Relationship> |
relationships
Deprecated.
|
| Constructor and Description |
|---|
HashContent()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Relationship> |
getRelationships()
Deprecated.
|
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Deprecated.
|
protected void |
init(ProcessorInitializationContext context)
Deprecated.
|
void |
onTrigger(ProcessContext context,
ProcessSession session)
Deprecated.
|
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, validatepublic static final PropertyDescriptor ATTRIBUTE_NAME
public static final PropertyDescriptor HASH_ALGORITHM
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
private List<PropertyDescriptor> properties
private Set<Relationship> relationships
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.