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.doublegetHighWatermarkLevel()Method to get correlation value which above which it can be considered that watermark strength is highdoublegetLowWatermarkLevel()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.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, 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:
getPurposesin classOpenStegoPlugin<C extends OpenStegoConfig>- Returns:
- Purpose(s) of the plugin
-
generateSignature
public final byte[] generateSignature()
Method to generate the signature data. This implementation returnsnullas this class is for data hiding plugins only- Specified by:
generateSignaturein 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.0as this class is for data hiding plugins only- Specified by:
getWatermarkCorrelationin 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:
getHighWatermarkLevelin 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:
getLowWatermarkLevelin classOpenStegoPlugin<C extends OpenStegoConfig>- Returns:
- Low watermark
-
-