Class 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
    • Constructor Detail

      • WatermarkingPlugin

        public WatermarkingPlugin()
    • Method Detail

      • extractMsgFileName

        public final String extractMsgFileName​(byte[] stegoData,
                                               String stegoFileName)
                                        throws OpenStegoException
        Method to extract the message file name from the stego data. This implementation returns null as this class is for watermarking plugins only
        Specified by:
        extractMsgFileName in class OpenStegoPlugin
        Parameters:
        stegoData - Stego data containing the message
        stegoFileName - 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 class OpenStegoPlugin
        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 class OpenStegoPlugin
        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 returns false as this class is for watermarking plugins only
        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