Package com.openstego.desktop
Class WatermarkingPlugin
- java.lang.Object
-
- com.openstego.desktop.OpenStegoPlugin
-
- com.openstego.desktop.WatermarkingPlugin
-
public abstract class WatermarkingPlugin extends OpenStegoPlugin
Abstract class for stego plugins for OpenStego purpose of which is watermarking. It implements few methods which are specific for watermarking, and provides dummy implementation for the methods which are specific to data hiding purposes so that sub-class does not need to implement them- See Also:
DataHidingPlugin
-
-
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 WatermarkingPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(byte[] stegoData)
Method to find out whether given stego data can be handled by this plugin or not.java.lang.String
extractMsgFileName(byte[] stegoData, java.lang.String stegoFileName)
Method to extract the message file name from the stego data.double
getHighWatermarkLevel()
Method to get correlation value which above which it can be considered that watermark strength is high (default to 0.5 which is safe for general watermarking)double
getLowWatermarkLevel()
Method to get correlation value which below which it can be considered that watermark strength is low (default to 0.2 which is safe for general watermarking)java.util.List<OpenStegoPlugin.Purpose>
getPurposes()
Gives the purpose(s) of the plugin.-
Methods inherited from class com.openstego.desktop.OpenStegoPlugin
checkMark, createConfig, createConfig, createConfig, embedData, extractData, generateSignature, getConfig, getConfigClass, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWatermarkCorrelation, getWritableFileExtensions, populateStdCmdLineOptions
-
-
-
-
Method Detail
-
getPurposes
public final java.util.List<OpenStegoPlugin.Purpose> getPurposes()
Gives the purpose(s) of the plugin. This implementation returns only one value - Watermarking- Specified by:
getPurposes
in classOpenStegoPlugin
- Returns:
- Purpose(s) of the plugin
-
extractMsgFileName
public final java.lang.String extractMsgFileName(byte[] stegoData, java.lang.String stegoFileName) throws OpenStegoException
Method to extract the message file name from the stego data. This implementation returnsnull
as this class is for watermarking plugins only- Specified by:
extractMsgFileName
in classOpenStegoPlugin
- Parameters:
stegoData
- Stego data containing the messagestegoFileName
- Name of the stego file- Returns:
- Message file name
- Throws:
OpenStegoException
-
getHighWatermarkLevel
public double getHighWatermarkLevel() throws OpenStegoException
Method to get correlation value which above which it can be considered that watermark strength is high (default to 0.5 which is safe for general watermarking)- Specified by:
getHighWatermarkLevel
in classOpenStegoPlugin
- Returns:
- High watermark
- Throws:
OpenStegoException
-
getLowWatermarkLevel
public double getLowWatermarkLevel() throws OpenStegoException
Method to get correlation value which below which it can be considered that watermark strength is low (default to 0.2 which is safe for general watermarking)- Specified by:
getLowWatermarkLevel
in 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. This implementation returnsfalse
as this class is for watermarking plugins only- Specified by:
canHandle
in classOpenStegoPlugin
- Parameters:
stegoData
- Stego data containing the message- Returns:
- Boolean indicating whether the stego data can be handled by this plugin or not
-
-