|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openstego.OpenStegoPlugin
Abstract class for stego plugins for OpenStego. Abstract methods need to be implemented to add support for more steganographic algorithms
| Field Summary | |
protected OpenStegoConfig |
config
Configuration data to be used while embedding / extracting data |
static String |
PURPOSE_DATA_HIDING
Constant for the purpose of the plugin - Data Hiding |
static String |
PURPOSE_WATERMARKING
Constant for the purpose of the plugin - Watermarking |
| Constructor Summary | |
OpenStegoPlugin()
|
|
| Method Summary | |
abstract boolean |
canHandle(byte[] stegoData)
Method to find out whether given stego data can be handled by this plugin or not |
double |
checkMark(byte[] stegoData,
String stegoFileName,
byte[] origSigData)
Method to check the correlation for the given image and the original signature |
OpenStegoConfig |
createConfig()
Method to create default configuration data (specific to this plugin) |
OpenStegoConfig |
createConfig(CmdLineOptions options)
Method to create configuration data (specific to this plugin) based on the command-line options |
OpenStegoConfig |
createConfig(Map propMap)
Method to create configuration data (specific to this plugin) based on the property map |
abstract byte[] |
embedData(byte[] msg,
String msgFileName,
byte[] cover,
String coverFileName,
String stegoFileName)
Method to embed the message into the cover data |
abstract byte[] |
extractData(byte[] stegoData,
String stegoFileName,
byte[] origSigData)
Method to extract the message from the stego data |
abstract String |
extractMsgFileName(byte[] stegoData,
String stegoFileName)
Method to extract the message file name from the stego data |
abstract byte[] |
generateSignature()
Method to generate the signature data. |
OpenStegoConfig |
getConfig()
Get method for config |
abstract Class |
getConfigClass()
Method to get the configuration class specific to this plugin |
abstract String |
getDescription()
Gives a short description of the plugin |
abstract byte[] |
getDiff(byte[] stegoData,
String stegoFileName,
byte[] coverData,
String coverFileName,
String diffFileName)
Method to get difference between original cover file and the stegged file |
abstract PluginEmbedOptionsUI |
getEmbedOptionsUI(OpenStegoUI stegoUI)
Method to get the UI object for "Embed" action specific to this plugin. |
abstract String |
getName()
Gives the name of the plugin |
abstract List |
getPurposes()
Gives the purpose(s) of the plugin |
String |
getPurposesLabel()
Gives the display label for purpose(s) of the plugin |
abstract List |
getReadableFileExtensions()
Method to get the list of supported file extensions for reading |
abstract String |
getUsage()
Method to get the usage details of the plugin |
abstract double |
getWatermarkCorrelation(byte[] origSigData,
byte[] watermarkData)
Method to check the correlation between original signature and the extracted watermark |
abstract List |
getWritableFileExtensions()
Method to get the list of supported file extensions for writing |
abstract void |
populateStdCmdLineOptions(CmdLineOptions options)
Method to populate the standard command-line options used by this plugin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PURPOSE_DATA_HIDING
public static final String PURPOSE_WATERMARKING
protected OpenStegoConfig config
| Constructor Detail |
public OpenStegoPlugin()
| Method Detail |
public abstract String getName()
public abstract List getPurposes()
public abstract String getDescription()
public final String getPurposesLabel()
public abstract byte[] embedData(byte[] msg,
String msgFileName,
byte[] cover,
String coverFileName,
String stegoFileName)
throws OpenStegoException
msg - Message to be embeddedmsgFileName - Name of the message file. If this value is provided, then the filename should be embedded in
the cover datacover - Cover data into which message needs to be embeddedcoverFileName - Name of the cover filestegoFileName - Name of the output stego file
OpenStegoException
public abstract String extractMsgFileName(byte[] stegoData,
String stegoFileName)
throws OpenStegoException
stegoData - Stego data containing the messagestegoFileName - Name of the stego file
OpenStegoException
public abstract byte[] extractData(byte[] stegoData,
String stegoFileName,
byte[] origSigData)
throws OpenStegoException
stegoData - Stego data containing the messagestegoFileName - Name of the stego fileorigSigData - Optional signature data file for watermark
OpenStegoException
public abstract byte[] generateSignature()
throws OpenStegoException
OpenStegoException
public final double checkMark(byte[] stegoData,
String stegoFileName,
byte[] origSigData)
throws OpenStegoException
stegoData - Stego data containing the watermarkstegoFileName - Name of the stego fileorigSigData - Original signature data
OpenStegoException
public abstract double getWatermarkCorrelation(byte[] origSigData,
byte[] watermarkData)
throws OpenStegoException
origSigData - Original signature datawatermarkData - Extracted watermark data
OpenStegoException
public abstract byte[] getDiff(byte[] stegoData,
String stegoFileName,
byte[] coverData,
String coverFileName,
String diffFileName)
throws OpenStegoException
stegoData - Stego data containing the embedded datastegoFileName - Name of the stego filecoverData - Original cover datacoverFileName - Name of the cover filediffFileName - Name of the output difference file
OpenStegoExceptionpublic abstract boolean canHandle(byte[] stegoData)
stegoData - Stego data containing the message
public abstract List getReadableFileExtensions()
throws OpenStegoException
OpenStegoException
public abstract List getWritableFileExtensions()
throws OpenStegoException
OpenStegoException
public abstract void populateStdCmdLineOptions(CmdLineOptions options)
throws OpenStegoException
options - Existing command-line options. Plugin-specific options will get added to this list
OpenStegoException
public abstract String getUsage()
throws OpenStegoException
OpenStegoException
public abstract PluginEmbedOptionsUI getEmbedOptionsUI(OpenStegoUI stegoUI)
throws OpenStegoException
stegoUI - Reference to the parent OpenStegoUI object
OpenStegoExceptionpublic abstract Class getConfigClass()
public final OpenStegoConfig createConfig()
throws OpenStegoException
OpenStegoException
public final OpenStegoConfig createConfig(Map propMap)
throws OpenStegoException
propMap - Property map
OpenStegoException
public final OpenStegoConfig createConfig(CmdLineOptions options)
throws OpenStegoException
options - Command-line options
OpenStegoExceptionpublic final OpenStegoConfig getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||