|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--trex.StegData
This class handles steganography algorithms and their data.
Constructor Summary | |
StegData(MainFrame parent,
Class algoClass)
Default constructor. |
Method Summary | |
int |
defaultAmplification()
Get current algorithm's default amplification for combined panel. |
Component |
getConfigDialog()
Get current algorithm's config dialog. |
ImageIcon |
getCrypted()
Get the encrypted image. |
String |
getData()
Get contained data (e.g. from decryption). |
ImageIcon |
getUncrypted()
Get the uncrypted image. |
boolean |
hasConfigDialog()
Return whether current algorith has a config dialog. |
boolean |
hasPassPhrase()
Return whether current algorithm needs a pass phrase. |
boolean |
openCrypted(String filename)
Open a crypted Image (containing hidden data). |
boolean |
openUncrypted(String filename)
Open an uncrypted Image with filename . |
boolean |
paramsChanged()
This routine is called whenever the parameters have changed, e.g. new images, new data, changes in pass phrase/config dialog, ... |
boolean |
saveCrypted(String filename)
Save crypted image to file. |
boolean |
setAlgo(Class algoClass)
Set a new algorithm. |
void |
setData(String data)
Set new data to hide. |
boolean |
setPassPhrase(String pp)
Set a new pass phrase for current algorithm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StegData(MainFrame parent, Class algoClass)
parent
- Parent window for message boxes.algoClass
- algorithm to use initiallyMethod Detail |
public boolean setAlgo(Class algoClass)
algoClass
- New algorithm.
public ImageIcon getUncrypted()
ImageIcon
containing the uncrypted Image.public ImageIcon getCrypted()
ImageIcon
containing the crypted Image.public boolean paramsChanged()
public boolean openUncrypted(String filename)
filename
.
filename
- File name.
public boolean openCrypted(String filename)
filename
- File name.
public boolean saveCrypted(String filename)
filename
- File name.
public void setData(String data)
data
- New text.public String getData()
public boolean setPassPhrase(String pp)
pp
- new pass phrase.
public boolean hasPassPhrase()
public boolean hasConfigDialog()
public Component getConfigDialog()
public int defaultAmplification()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |