|
![]() SandMark version 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--sandmark.Algorithm
|
+--sandmark.watermark.GeneralWatermarker
|
+--sandmark.watermark.StaticWatermarker
|
+--sandmark.watermark.bogusinitializer.BogusInitializer
Algorithm Implemented by : Ashok Purushotham & RathnaPrabhu emails : ashok@cs.arizona.edu prabhu@cs.arizona.edu This algorithm adds a constant "sm$len=x" where x is the number of bogus initialisers to be embedded in the constant pool of a random class. sm$len is the identifer we're looking for during recognition and based on the value , we will looking for that many bogus initialisers embedded Important : THE INPUT JAR FILE SHOULD NOT CONTAIN ANY INTERFACES OTHERWISE, getInstructionList will return null
| Nested Class Summary | |
(package private) class |
BogusInitializer.Recognizer
|
| Field Summary | |
(package private) static int |
bogus_ids_no
|
(package private) static ConfigProperties |
configProps
|
| Constructor Summary | |
BogusInitializer()
Constructs a watermarker. |
|
| Method Summary | |
void |
embed(ClassFileCollection cfc,
java.util.jar.JarOutputStream output,
java.util.Properties props)
Embed a watermark value into the program. |
java.lang.String |
getAlgHTML()
Gives a description of what the algorithm does. |
java.lang.String |
getAlgURL()
Specifies the URL of where the user can find more information about the algorithm. |
ConfigProperties |
getConfigProperties()
Gets the ConfigProperties object which specifies the parameters for this run of the algorithm. |
java.lang.String |
getLongName()
Returns this watermarker's long name. |
static ConfigProperties |
getProperties()
Get the GENERAL properties of watermark |
java.lang.String |
getShortName()
Returns this watermarker's short name. |
java.util.Iterator |
recognize(java.util.Properties props)
|
void |
setConfigProperties(ConfigProperties props)
Sets the ConfigProperties object which specifies the parameters for this run of the algorithm. |
static void |
setProperties(ConfigProperties props)
Set the GENERAL properties of watermark |
| Methods inherited from class sandmark.watermark.StaticWatermarker |
getAboutHTML, getHelpURL |
| Methods inherited from class sandmark.Algorithm |
getAuthor, getAuthorEmail, getDescription, getMutations, getPostprohibited, getPostrequisites, getPostsuggestions, getPreprohibited, getPrerequisites, getPresuggestions, getReferences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static ConfigProperties configProps
static int bogus_ids_no
| Constructor Detail |
public BogusInitializer()
| Method Detail |
public java.lang.String getShortName()
getShortName in class Algorithmpublic java.lang.String getLongName()
getLongName in class Algorithmpublic static ConfigProperties getProperties()
GeneralWatermarker
public static void setProperties(ConfigProperties props)
GeneralWatermarker
public java.lang.String getAlgHTML()
Algorithm
getAlgHTML in class Algorithmpublic java.lang.String getAlgURL()
Algorithm
getAlgURL in class Algorithm
public void embed(ClassFileCollection cfc,
java.util.jar.JarOutputStream output,
java.util.Properties props)
throws WatermarkingException,
java.io.IOException
StaticWatermarker
embed in class StaticWatermarkerWatermarkingException
java.io.IOException
public java.util.Iterator recognize(java.util.Properties props)
throws WatermarkingException,
java.io.IOException
recognize in class StaticWatermarkerWatermarkingException
java.io.IOExceptionpublic void setConfigProperties(ConfigProperties props)
Algorithm
setConfigProperties in class Algorithmprops - the parameters for this run of the algorithmpublic ConfigProperties getConfigProperties()
Algorithm
getConfigProperties in class Algorithm
|
SandMark version 2.0 Mon Jun 17 12:30:47 MST 2002 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||