flux.file
Class FileDecryptPgpAction

java.lang.Object
  extended by fluximpl.ActionFlowChartImpl
      extended by fluximpl.ActionImpl
          extended by fluximpl.file.AbstractSingleFileParameter
              extended by fluximpl.file.AbstractDoubleFileParameter
                  extended by fluximpl.file.pgp.AbstractPgpAction
                      extended by fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
                          extended by flux.file.FileDecryptPgpAction
All Implemented Interfaces:
Action, DoubleFileParameter, SingleFileParameter, RuntimeDataMap, fluximpl.dev.ActionDev, fluximpl.dev.ActionTriggerDev, java.io.Serializable, java.lang.Cloneable

public class FileDecryptPgpAction
extends fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl

Decrypts a set of PGP-encrypted files. The proper private key from the repository, or a passphrase, that corresponds to the encrypted files must be used in order for the decryption to be successful. The bytes of each file are streamed from the source host and are decrypted along the way so no unencrypted data is stored in transit.

Author:
Copyright 2014 Flux Corporation. All rights reserved.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class fluximpl.ActionImpl
END_OF_RUN, JOIN_EXP, START_OF_RUN, TIMEOUT_BI, TIMEOUT_BI_NAMESPACE
 
Fields inherited from class fluximpl.ActionFlowChartImpl
actionsLock
 
Constructor Summary
FileDecryptPgpAction()
          Creates a PGP decryption action that is not associated with a flow chart.
FileDecryptPgpAction(FlowChart flowChart, java.lang.String name)
          Creates a PGP decryption action that is associated with the specified flow chart.
 
Method Summary
 java.lang.String getKeyNamespace()
          Returns the repository namespace this action will use to retrieve the private key.
 java.lang.String getPassphrase()
          Returns the passphrase used to secure the PGP encryption.
 boolean isDeleteSource()
          Indicates whether the encrypted source files should be deleted after completing the decryption.
 void setDeleteSource(boolean deleteSource)
          Sets whether the encrypted source files should be deleted after completing the decryption.
 void setKeyNamespace(java.lang.String repositoryNamespace)
          Sets the repository namespace this action will use to retrieve the private key.
 void setPassphrase(java.lang.String passphrase)
          Returns the passphrase used to encrypt the specified PGP files.
 
Methods inherited from class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
doPgpWork, verify
 
Methods inherited from class fluximpl.file.pgp.AbstractPgpAction
getHiddenVariableNames
 
Methods inherited from class fluximpl.file.AbstractDoubleFileParameter
addTarget, execute, getIndexedTargets, getIndexedTargets, getTargets, isPreserveDirectoryStructure, setIndexedTargets, setIndexedTargets, setPreserveDirectoryStructure, setTargets
 
Methods inherited from class fluximpl.file.AbstractSingleFileParameter
addSource, clear, getIndexedSources, getIndexedSources, getSources, setIndexedSources, setIndexedSources, setSources
 
Methods inherited from class fluximpl.ActionImpl
addFlow, addFlow, addInFlow, addOutFlow, addPropertyChangeListener, addSignalFlow, auditForAgent, calculateTimeout, clearInFlow, clone, cloneFlows, countSignals, doDataMapping, equals, getAuditTrailDetails, getFlows, getInFlows, getJoinExpression, getNote, getOutFlows, getPoint, getPostscript, getPostscriptLanguage, getPrescript, getPrescriptLanguage, getResultInfo, getRuntimeDataMap, getSignalsToMonitor, getTimeoutBusinessInterval, getTimeoutBusinessIntervalNamespace, getTimeoutExpression, getX, getY, hashCode, isEndOfRun, isJoinPoint, isMarkedForSkip, isSkippable, isStartAction, isStartOfRun, isTransactionBreak, makeTimeoutSignal, postClone, preClone, removeFlow, removeInFlow, removePropertyChangeListener, setElseFlow, setEndOfRun, setErrorFlow, setErrorFlowWithoutRollback, setErrorFlowWithRollback, setJoinExpression, setJoinPoint, setMarkedForSkip, setName, setNameWithoutErrorCheck, setNote, setPoint, setPostscript, setPostscriptLanguage, setPrescript, setPrescriptLanguage, setRuntimeDataMap, setSignalsToMonitor, setSkippable, setStartAction, setStartOfRun, setTimeoutBusinessInterval, setTimeoutBusinessIntervalNamespace, setTimeoutExpression, setTimeoutFlow, setTransactionBreak, setX, setY, toString, verifyOnClient, verifyTimeout
 
Methods inherited from class fluximpl.ActionFlowChartImpl
getDescription, getId, getName, getVariableManager, reset, setDescription, setId, setVariableManager
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface flux.file.SingleFileParameter
addSource, clear, getSources
 

Constructor Detail

FileDecryptPgpAction

public FileDecryptPgpAction()
Creates a PGP decryption action that is not associated with a flow chart.


FileDecryptPgpAction

public FileDecryptPgpAction(FlowChart flowChart,
                            java.lang.String name)
Creates a PGP decryption action that is associated with the specified flow chart.

Method Detail

getKeyNamespace

public java.lang.String getKeyNamespace()
Returns the repository namespace this action will use to retrieve the private key. This property cannot be set if a passphrase has been specified.

Overrides:
getKeyNamespace in class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
Returns:
The repository namespace this action will use to retrieve the public key.

getPassphrase

public java.lang.String getPassphrase()
Returns the passphrase used to secure the PGP encryption. This property cannot be set if a key namespace has been specified.

Overrides:
getPassphrase in class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
Returns:
The passphrase used to secure the PGP encryption.

isDeleteSource

public boolean isDeleteSource()
Indicates whether the encrypted source files should be deleted after completing the decryption.

Overrides:
isDeleteSource in class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
Returns:
Whether the encrypted source files should be deleted after completing the decryption.

setDeleteSource

public void setDeleteSource(boolean deleteSource)
Sets whether the encrypted source files should be deleted after completing the decryption.

Overrides:
setDeleteSource in class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
Parameters:
deleteSource - Whether the encrypted source files should be deleted after completing the decryption.

setKeyNamespace

public void setKeyNamespace(java.lang.String repositoryNamespace)
Sets the repository namespace this action will use to retrieve the private key. This property cannot be set if a passphrase has been specified.

Overrides:
setKeyNamespace in class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
Parameters:
repositoryNamespace - The repository namespace this action will use to retrieve the private key. This property cannot be set if a passphrase has been specified.

setPassphrase

public void setPassphrase(java.lang.String passphrase)
Returns the passphrase used to encrypt the specified PGP files. This property cannot be set if a key namespace has been specified.

Overrides:
setPassphrase in class fluximpl.file.pgp.decrypt.FileDecryptPgpActionImpl
Parameters:
passphrase - The passphrase used to encrypt the specified PGP files.


© 2014 Flux Corporation. All rights reserved.