Class WatermarkingPlugin
java.lang.Object
com.openstego.desktop.OpenStegoPlugin
com.openstego.desktop.WatermarkingPlugin
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class OpenStegoPlugin
OpenStegoPlugin.Purpose
-
Field Summary
Fields inherited from class OpenStegoPlugin
config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
canHandle
(byte[] stegoData) Method to find out whether given stego data can be handled by this plugin or not.final String
extractMsgFileName
(byte[] stegoData, String stegoFileName) Method to extract the message file name from the stego data.double
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
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)final List
<OpenStegoPlugin.Purpose> Gives the purpose(s) of the plugin.Methods inherited from class OpenStegoPlugin
checkMark, createConfig, createConfig, createConfig, embedData, extractData, generateSignature, getConfig, getConfigClass, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWatermarkCorrelation, getWritableFileExtensions, populateStdCmdLineOptions
-
Constructor Details
-
WatermarkingPlugin
public WatermarkingPlugin()
-
-
Method Details
-
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 String extractMsgFileName(byte[] stegoData, 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
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
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
-