Package com.openstego.desktop
Class DataHidingPlugin
java.lang.Object
com.openstego.desktop.OpenStegoPlugin
com.openstego.desktop.DataHidingPlugin
Abstract class for stego plugins for OpenStego purpose of which is data hiding. It implements few methods which are
specific for data hiding, and provides dummy implementation for the methods which are specific to watermarking
purposes so that sub-class does not need to implement them
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openstego.desktop.OpenStegoPlugin
OpenStegoPlugin.Purpose -
Field Summary
Fields inherited from class com.openstego.desktop.OpenStegoPlugin
config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancanHandle(byte[] stegoData) Method to find out whether given stego data can be handled by this plugin or notfinal byte[]Method to generate the signature data.doubleMethod to get correlation value which above which it can be considered that watermark strength is highdoubleMethod to get correlation value which below which it can be considered that watermark strength is lowfinal List<OpenStegoPlugin.Purpose> Gives the purpose(s) of the plugin.final doublegetWatermarkCorrelation(byte[] origSigData, byte[] watermarkData) Method to check the correlation between original signature and the extracted watermark.Methods inherited from class com.openstego.desktop.OpenStegoPlugin
checkMark, createConfig, createConfig, createConfig, embedData, extractData, extractMsgFileName, getConfig, getConfigClass, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWritableFileExtensions, populateStdCmdLineOptions
-
Constructor Details
-
DataHidingPlugin
public DataHidingPlugin()
-
-
Method Details
-
getPurposes
Gives the purpose(s) of the plugin. This implementation returns only one value - Data Hiding- Specified by:
getPurposesin classOpenStegoPlugin- Returns:
- Purpose(s) of the plugin
-
generateSignature
Method to generate the signature data. This implementation returnsnullas this class is for data hiding plugins only- Specified by:
generateSignaturein classOpenStegoPlugin- Returns:
- Signature data
- Throws:
OpenStegoException
-
getWatermarkCorrelation
public final double getWatermarkCorrelation(byte[] origSigData, byte[] watermarkData) throws OpenStegoException Method to check the correlation between original signature and the extracted watermark. This implementation returns0.0as this class is for data hiding plugins only- Specified by:
getWatermarkCorrelationin classOpenStegoPlugin- Parameters:
origSigData- Original signature datawatermarkData- Extracted watermark data- Returns:
- Correlation
- Throws:
OpenStegoException
-
getHighWatermarkLevel
Method to get correlation value which above which it can be considered that watermark strength is high- Specified by:
getHighWatermarkLevelin classOpenStegoPlugin- Returns:
- High watermark
- Throws:
OpenStegoException
-
getLowWatermarkLevel
Method to get correlation value which below which it can be considered that watermark strength is low- Specified by:
getLowWatermarkLevelin classOpenStegoPlugin- Returns:
- Low watermark
- Throws:
OpenStegoException
-
canHandle
public final boolean canHandle(byte[] stegoData) Method to find out whether given stego data can be handled by this plugin or not- Specified by:
canHandlein classOpenStegoPlugin- Parameters:
stegoData- Stego data containing the message- Returns:
- Boolean indicating whether the stego data can be handled by this plugin or not
-