org.owasp.orizon.library
Class CookBook
java.lang.Object
org.owasp.orizon.O
org.owasp.orizon.xml.Reader
org.owasp.orizon.library.CookBook
public class CookBook
- extends Reader
The Owasp Orizon CookBook.
A cookbook is a collection of security related recipes and it is stored into
the library. An XML file, called cookbook.xml must be present into the
cookbook directory to describe its content.
- Since:
- 1.0pre1
- Author:
- thesp0nge
- See Also:
Folder
Constructor Summary |
CookBook(java.lang.String name)
Creates a new CookBook object where security recipes are stored. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookBook
public CookBook(java.lang.String name)
- Creates a new CookBook object where security recipes are stored.
- Parameters:
name
- the name of the cookbook (e.g. O_CR_1, ...)
setProperties
public void setProperties(java.util.HashMap<java.lang.String,java.lang.String> p)
getCookBookPath
public java.lang.String getCookBookPath()
getWeight
public float getWeight()
getRecipesCount
public int getRecipesCount()
isEnabled
public boolean isEnabled()
getId
public java.lang.String getId()
getDescription
public java.lang.String getDescription()
read
public boolean read()
- Specified by:
read
in class Reader
getContent
public java.lang.String getContent()
getChecksCount
public int getChecksCount()
review
public boolean review()
getFaultyChecks
public java.util.Vector<Reportable> getFaultyChecks()
getRecipe
public Recipe getRecipe(int index)
- Returns the index-th recipes. Index value must be between 1 and the
recipes number, otherwise nothing has been returned.
- Parameters:
index
- the recipe ordinal number
- Returns:
- a recipe or null if index is out of bound or cookbook has
not been read.
load
public void load(Source s)