Package com.openstego.desktop
Class DataHidingPlugin<C extends OpenStegoConfig>
- java.lang.Object
-
- com.openstego.desktop.OpenStegoPlugin<C>
-
- com.openstego.desktop.DataHidingPlugin<C>
-
public abstract class DataHidingPlugin<C extends OpenStegoConfig> extends OpenStegoPlugin<C>
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:
WatermarkingPlugin
-
-
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 Constructor Description DataHidingPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateSignature()
Method to generate the signature data.double
getHighWatermarkLevel()
Method to get correlation value which above which it can be considered that watermark strength is highdouble
getLowWatermarkLevel()
Method to get correlation value which below which it can be considered that watermark strength is lowList<OpenStegoPlugin.Purpose>
getPurposes()
Gives the purpose(s) of the plugin.double
getWatermarkCorrelation(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, embedData, extractData, extractMsgFileName, getConfig, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWritableFileExtensions, populateStdCmdLineOptions, resetConfig, resetConfig
-
-
-
-
Method Detail
-
getPurposes
public final List<OpenStegoPlugin.Purpose> getPurposes()
Gives the purpose(s) of the plugin. This implementation returns only one value - Data Hiding- Specified by:
getPurposes
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- Purpose(s) of the plugin
-
generateSignature
public final byte[] generateSignature()
Method to generate the signature data. This implementation returnsnull
as this class is for data hiding plugins only- Specified by:
generateSignature
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- Signature data
-
getWatermarkCorrelation
public final double getWatermarkCorrelation(byte[] origSigData, byte[] watermarkData)
Method to check the correlation between original signature and the extracted watermark. This implementation returns0.0
as this class is for data hiding plugins only- Specified by:
getWatermarkCorrelation
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Parameters:
origSigData
- Original signature datawatermarkData
- Extracted watermark data- Returns:
- Correlation
-
getHighWatermarkLevel
public double getHighWatermarkLevel()
Method to get correlation value which above which it can be considered that watermark strength is high- Specified by:
getHighWatermarkLevel
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- High watermark
-
getLowWatermarkLevel
public double getLowWatermarkLevel()
Method to get correlation value which below which it can be considered that watermark strength is low- Specified by:
getLowWatermarkLevel
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- Low watermark
-
-