@InputRequirement(value=INPUT_REQUIRED) @Tags(value={"PGP","GPG","OpenPGP","Encryption","RFC 4880"}) @CapabilityDescription(value="Decrypt contents of OpenPGP messages. Using the Packaged Decryption Strategy preserves OpenPGP encoding to support subsequent signature verification.") @SeeAlso(value={EncryptContentPGP.class,SignContentPGP.class,VerifyContentPGP.class}) @WritesAttribute(attribute="pgp.literal.data.filename",description="Filename from decrypted Literal Data") @WritesAttribute(attribute="pgp.literal.data.modified",description="Modified Date from decrypted Literal Data") @WritesAttribute(attribute="pgp.symmetric.key.algorithm.block.cipher",description="Symmetric-Key Algorithm Block Cipher") @WritesAttribute(attribute="pgp.symmetric.key.algorithm.id",description="Symmetric-Key Algorithm Identifier") public class DecryptContentPGP extends AbstractProcessor
| Modifier and Type | Class and Description |
|---|---|
private class |
DecryptContentPGP.DecryptStreamCallback |
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
DECRYPTION_STRATEGY |
private static List<PropertyDescriptor> |
DESCRIPTORS |
static Relationship |
FAILURE |
static PropertyDescriptor |
PASSPHRASE |
private static String |
PASSWORD_BASED_ENCRYPTION |
static PropertyDescriptor |
PRIVATE_KEY_SERVICE |
private static String |
PUBLIC_KEY_ENCRYPTION |
private static Set<Relationship> |
RELATIONSHIPS |
static Relationship |
SUCCESS |
| Constructor and Description |
|---|
DecryptContentPGP() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ValidationResult> |
customValidate(ValidationContext context)
Custom Validate requires at least one decryption property to be configured
|
private DecryptionStrategy |
getDecryptionStrategy(ProcessContext context) |
private char[] |
getPassphrase(ProcessContext context) |
private PGPPrivateKeyService |
getPrivateKeyService(ProcessContext context) |
Set<Relationship> |
getRelationships()
Get Relationships
|
List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Get Supported Property Descriptors
|
void |
onTrigger(ProcessContext context,
ProcessSession session)
On Trigger decrypts Flow File contents using configured properties
|
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final Relationship SUCCESS
public static final Relationship FAILURE
public static final PropertyDescriptor DECRYPTION_STRATEGY
public static final PropertyDescriptor PASSPHRASE
public static final PropertyDescriptor PRIVATE_KEY_SERVICE
private static final Set<Relationship> RELATIONSHIPS
private static final List<PropertyDescriptor> DESCRIPTORS
private static final String PASSWORD_BASED_ENCRYPTION
private static final String PUBLIC_KEY_ENCRYPTION
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic final List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic void onTrigger(ProcessContext context, ProcessSession session)
onTrigger in class AbstractProcessorcontext - Process Contextsession - Process Sessionprotected Collection<ValidationResult> customValidate(ValidationContext context)
customValidate in class AbstractConfigurableComponentcontext - Validation Contextprivate char[] getPassphrase(ProcessContext context)
private PGPPrivateKeyService getPrivateKeyService(ProcessContext context)
private DecryptionStrategy getDecryptionStrategy(ProcessContext context)
Copyright © 2022 Apache NiFi Project. All rights reserved.