net.sourceforge.openstego
Class DataHidingPlugin
java.lang.Object
net.sourceforge.openstego.OpenStegoPlugin
net.sourceforge.openstego.DataHidingPlugin
public abstract class DataHidingPlugin
- extends OpenStegoPlugin
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
Method Summary |
boolean |
canHandle(byte[] stegoData)
Method to find out whether given stego data can be handled by this plugin or not |
byte[] |
generateSignature()
Method to generate the signature data. |
java.util.List |
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 net.sourceforge.openstego.OpenStegoPlugin |
checkMark, createConfig, createConfig, createConfig, embedData, extractData, extractMsgFileName, getConfig, getConfigClass, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWritableFileExtensions, populateStdCmdLineOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataHidingPlugin
public DataHidingPlugin()
getPurposes
public final java.util.List getPurposes()
- Gives the purpose(s) of the plugin. This implementation returns only one value - Data Hiding
- Specified by:
getPurposes
in class OpenStegoPlugin
- Returns:
- Purpose(s) of the plugin
generateSignature
public final byte[] generateSignature()
throws OpenStegoException
- Method to generate the signature data. This implementation returns
null
as this class is for data
hiding plugins only
- Specified by:
generateSignature
in class OpenStegoPlugin
- 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
returns
0.0
as this class is for data hiding plugins only
- Specified by:
getWatermarkCorrelation
in class OpenStegoPlugin
- Parameters:
origSigData
- Original signature datawatermarkData
- Extracted watermark data
- Returns:
- Correlation
- 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:
canHandle
in class OpenStegoPlugin
- Parameters:
stegoData
- Stego data containing the message
- Returns:
- Boolean indicating whether the stego data can be handled by this plugin or not
Copyright © 2007-2009 Samir Vaidya. All Rights Reserved.