|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--trex.Algo.StegoAlgo
This class defines the interface of steganography algorithms.
Field Summary | |
protected String |
passPhrase
Algorithm's current pass phrase. |
Constructor Summary | |
StegoAlgo()
|
Method Summary | |
abstract int |
defaultAmplification()
Return the default amplification of this algorithm for the combinedPanel. |
abstract Component |
getConfigDialog()
If hasConfigDialog() is true, return a panel with the config dialog. |
abstract String |
getDecrypted(ImageIcon img)
Return the string contained in the ImageIcon. |
abstract ImageIcon |
getEncrypted(String data,
ImageIcon img)
Return an image hiding the data. |
abstract String |
getInfo()
Return an info string about this algorithm. |
abstract boolean |
hasConfigDialog()
Return whether this algorithm has a config dialog. |
abstract boolean |
hasPassPhrase()
Return whether this algorithm needs a pass phrase. |
abstract boolean |
pictureLargeEnough(ImageIcon img,
String data)
Return whether the passed picture is large enough to carry the data |
void |
setPassPhrase(String pp)
Set new pass phrase. |
abstract boolean |
validConfig()
Return whether the config from pass phrase or config dialog are valid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String passPhrase
Constructor Detail |
public StegoAlgo()
Method Detail |
public abstract boolean hasConfigDialog()
public abstract boolean hasPassPhrase()
public abstract String getInfo()
public abstract Component getConfigDialog()
hasPassPhrase()
is ignored when there is a config dialog.
Should return null
when there is no config dialog.
hasConfigDialog()
,
hasPassPhrase()
public abstract boolean validConfig()
public void setPassPhrase(String pp)
pp
- New pass phrase.public abstract String getDecrypted(ImageIcon img) throws DecryptImpossibleException
img
- The image hiding the data.
String
.
DecryptImpossibleException
public abstract ImageIcon getEncrypted(String data, ImageIcon img)
data
- Data to hide.img
- Envelope image.
ImageIcon
hiding the data.public abstract boolean pictureLargeEnough(ImageIcon img, String data)
img
- Image to hide data indata
- data to hide
public abstract int defaultAmplification()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |