org.owasp.orizon.core
Class Cons

java.lang.Object
  extended by org.owasp.orizon.core.Cons

public class Cons
extends java.lang.Object

This class handle framework constants

Author:
sp0nge

Field Summary
static int O_AUTO
           
static int O_C
           
static int O_CSHARP
           
static int O_DIRECTORY
           
static int O_JAVA
           
static int O_JSP
           
static int O_MS_ERROR
           
static int O_MS_OPENED
           
static int O_MS_PARSED
           
static int O_MS_READY
           
static int O_MS_SPIDER
           
static int O_MS_START
           
static int O_NONE
           
static int O_PHP
           
static int O_UNKNOWN
           
static java.lang.String OC_COMM_LINE_LONG
           
static java.lang.String OC_COMM_LINE_SHORT
           
static java.lang.String OC_FRAMEWORK_OPTION_CRAWLER
           
static java.lang.String OC_FRAMEWORK_OPTION_ENABLE_CHECK
           
static java.lang.String OC_FRAMEWORK_OPTION_ENGINE_TRACE
           
static java.lang.String OC_FRAMEWORK_OPTION_HELP
           
static java.lang.String OC_FRAMEWORK_OPTION_INPUT_KIND
           
static java.lang.String OC_FRAMEWORK_OPTION_INPUT_NAME
           
static java.lang.String OC_FRAMEWORK_OPTION_LANGUAGE
           
static java.lang.String OC_FRAMEWORK_OPTION_LIB_DIR
           
static java.lang.String OC_FRAMEWORK_OPTION_LIST_CHECKS
           
static java.lang.String OC_FRAMEWORK_OPTION_OUTPUT_FORMAT
           
static java.lang.String OC_FRAMEWORK_OPTION_QUERY_STRING
           
static java.lang.String OC_FRAMEWORK_OPTION_QUIET
           
static java.lang.String OC_FRAMEWORK_OPTION_RECURSIVE
           
static java.lang.String OC_FRAMEWORK_OPTION_REPORT_FORMAT
           
static java.lang.String OC_FRAMEWORK_OPTION_REPORT_NAME
           
static java.lang.String OC_FRAMEWORK_OPTION_SCAN_TYPE
           
static java.lang.String OC_FRAMEWORK_OPTION_SNIPPET_DELTA
           
static java.lang.String OC_FRAMEWORK_OPTION_STORE_MESSAGES
           
static java.lang.String OC_FRAMEWORK_OPTION_TEE
           
static java.lang.String OC_FRAMEWORK_OPTION_WORKING_DIR
           
static int OC_IMPACT_HIGH
           
static int OC_IMPACT_LOW
           
static int OC_IMPACT_MEDIUM
           
static int OC_MAX_CALL_IN_CHECK
           
static int OC_MAX_CHECK_NO
           
static int OC_MAX_IMPORTS
           
static int OC_MAX_METHODS_NO
           
static int OC_MAX_PARAM_NO
           
static java.lang.String OC_O_CHECK_OVERFLOW_ERR
           
static java.lang.String OC_O_IMPORTS_OVERFLOW_ERR
           
static java.lang.String OC_O_INIT_NOT_CALLED_ERR
           
static java.lang.String OC_O_METHOD_OVERFLOW_ERR
           
static java.lang.String OC_O_PARAM_OVERFLOW_ERR
           
static java.lang.String OC_REPORT_CSV_FORMAT
           
static java.lang.String OC_REPORT_HTML_FORMAT
           
static java.lang.String OC_REPORT_TXT_FORMAT
           
static java.lang.String OC_REPORT_XML_FORMAT
           
static int OC_SERVICE_CRAWL
           
static int OC_SERVICE_GENERATE_REPORT
           
static int OC_SERVICE_GET_REPORT
           
static int OC_SERVICE_INIT_FRAMEWORK
           
static int OC_SERVICE_LIST
           
static int OC_SERVICE_MODEL
           
static int OC_SERVICE_OPEN
           
static int OC_SERVICE_SCORE
           
static int OC_SERVICE_SEARCH
           
static int OC_SERVICE_STATS
           
static int OC_SEVERITY_ERR
           
static int OC_SEVERITY_INFO
           
static int OC_SEVERITY_WARN
           
static int OC_TRANSLATOR_CF
           
static int OC_TRANSLATOR_CG
           
static int OC_TRANSLATOR_DESIGN
           
static int OC_TRANSLATOR_DF
           
static int OC_TRANSLATOR_KEYWORD
           
static int OC_TRANSLATOR_STAT
           
 
Constructor Summary
Cons()
           
 
Method Summary
static java.util.Vector<java.lang.String> deTokenize(java.lang.String list, java.lang.String delim)
           
static java.lang.String impact2Name(int code)
           
static java.lang.String language2Name(int code)
          Given a language id code, returns the language name
static int name2Impact(java.lang.String name)
           
static int name2Language(java.lang.String name)
          Given a language name, returns the language id code
static int name2Severity(java.lang.String name)
           
static java.lang.String severity2Name(int code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

O_MS_START

public static final int O_MS_START
See Also:
Constant Field Values

O_MS_READY

public static final int O_MS_READY
See Also:
Constant Field Values

O_MS_PARSED

public static final int O_MS_PARSED
See Also:
Constant Field Values

O_MS_SPIDER

public static final int O_MS_SPIDER
See Also:
Constant Field Values

O_MS_OPENED

public static final int O_MS_OPENED
See Also:
Constant Field Values

O_MS_ERROR

public static final int O_MS_ERROR
See Also:
Constant Field Values

O_AUTO

public static final int O_AUTO
See Also:
Constant Field Values

O_JAVA

public static final int O_JAVA
See Also:
Constant Field Values

O_CSHARP

public static final int O_CSHARP
See Also:
Constant Field Values

O_PHP

public static final int O_PHP
See Also:
Constant Field Values

O_C

public static final int O_C
See Also:
Constant Field Values

O_JSP

public static final int O_JSP
See Also:
Constant Field Values

O_UNKNOWN

public static final int O_UNKNOWN
See Also:
Constant Field Values

O_NONE

public static final int O_NONE
See Also:
Constant Field Values

O_DIRECTORY

public static final int O_DIRECTORY
See Also:
Constant Field Values

OC_MAX_PARAM_NO

public static final int OC_MAX_PARAM_NO
See Also:
Constant Field Values

OC_MAX_METHODS_NO

public static final int OC_MAX_METHODS_NO
See Also:
Constant Field Values

OC_MAX_CHECK_NO

public static final int OC_MAX_CHECK_NO
See Also:
Constant Field Values

OC_MAX_CALL_IN_CHECK

public static final int OC_MAX_CALL_IN_CHECK
See Also:
Constant Field Values

OC_MAX_IMPORTS

public static final int OC_MAX_IMPORTS
See Also:
Constant Field Values

OC_O_INIT_NOT_CALLED_ERR

public static final java.lang.String OC_O_INIT_NOT_CALLED_ERR
See Also:
Constant Field Values

OC_O_PARAM_OVERFLOW_ERR

public static final java.lang.String OC_O_PARAM_OVERFLOW_ERR
See Also:
Constant Field Values

OC_O_METHOD_OVERFLOW_ERR

public static final java.lang.String OC_O_METHOD_OVERFLOW_ERR
See Also:
Constant Field Values

OC_O_CHECK_OVERFLOW_ERR

public static final java.lang.String OC_O_CHECK_OVERFLOW_ERR
See Also:
Constant Field Values

OC_O_IMPORTS_OVERFLOW_ERR

public static final java.lang.String OC_O_IMPORTS_OVERFLOW_ERR
See Also:
Constant Field Values

OC_TRANSLATOR_STAT

public static final int OC_TRANSLATOR_STAT
See Also:
Constant Field Values

OC_TRANSLATOR_CF

public static final int OC_TRANSLATOR_CF
See Also:
Constant Field Values

OC_TRANSLATOR_CG

public static final int OC_TRANSLATOR_CG
See Also:
Constant Field Values

OC_TRANSLATOR_DF

public static final int OC_TRANSLATOR_DF
See Also:
Constant Field Values

OC_TRANSLATOR_DESIGN

public static final int OC_TRANSLATOR_DESIGN
See Also:
Constant Field Values

OC_TRANSLATOR_KEYWORD

public static final int OC_TRANSLATOR_KEYWORD
See Also:
Constant Field Values

OC_SEVERITY_INFO

public static final int OC_SEVERITY_INFO
See Also:
Constant Field Values

OC_SEVERITY_WARN

public static final int OC_SEVERITY_WARN
See Also:
Constant Field Values

OC_SEVERITY_ERR

public static final int OC_SEVERITY_ERR
See Also:
Constant Field Values

OC_IMPACT_LOW

public static final int OC_IMPACT_LOW
See Also:
Constant Field Values

OC_IMPACT_MEDIUM

public static final int OC_IMPACT_MEDIUM
See Also:
Constant Field Values

OC_IMPACT_HIGH

public static final int OC_IMPACT_HIGH
See Also:
Constant Field Values

OC_COMM_LINE_SHORT

public static final java.lang.String OC_COMM_LINE_SHORT
See Also:
Constant Field Values

OC_COMM_LINE_LONG

public static final java.lang.String OC_COMM_LINE_LONG
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_INPUT_NAME

public static final java.lang.String OC_FRAMEWORK_OPTION_INPUT_NAME
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_INPUT_KIND

public static final java.lang.String OC_FRAMEWORK_OPTION_INPUT_KIND
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_WORKING_DIR

public static final java.lang.String OC_FRAMEWORK_OPTION_WORKING_DIR
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_LANGUAGE

public static final java.lang.String OC_FRAMEWORK_OPTION_LANGUAGE
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_RECURSIVE

public static final java.lang.String OC_FRAMEWORK_OPTION_RECURSIVE
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_OUTPUT_FORMAT

public static final java.lang.String OC_FRAMEWORK_OPTION_OUTPUT_FORMAT
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_SCAN_TYPE

public static final java.lang.String OC_FRAMEWORK_OPTION_SCAN_TYPE
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_LIB_DIR

public static final java.lang.String OC_FRAMEWORK_OPTION_LIB_DIR
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_CRAWLER

public static final java.lang.String OC_FRAMEWORK_OPTION_CRAWLER
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_LIST_CHECKS

public static final java.lang.String OC_FRAMEWORK_OPTION_LIST_CHECKS
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_ENABLE_CHECK

public static final java.lang.String OC_FRAMEWORK_OPTION_ENABLE_CHECK
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_HELP

public static final java.lang.String OC_FRAMEWORK_OPTION_HELP
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_QUIET

public static final java.lang.String OC_FRAMEWORK_OPTION_QUIET
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_STORE_MESSAGES

public static final java.lang.String OC_FRAMEWORK_OPTION_STORE_MESSAGES
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_REPORT_FORMAT

public static final java.lang.String OC_FRAMEWORK_OPTION_REPORT_FORMAT
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_ENGINE_TRACE

public static final java.lang.String OC_FRAMEWORK_OPTION_ENGINE_TRACE
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_REPORT_NAME

public static final java.lang.String OC_FRAMEWORK_OPTION_REPORT_NAME
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_SNIPPET_DELTA

public static final java.lang.String OC_FRAMEWORK_OPTION_SNIPPET_DELTA
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_QUERY_STRING

public static final java.lang.String OC_FRAMEWORK_OPTION_QUERY_STRING
See Also:
Constant Field Values

OC_FRAMEWORK_OPTION_TEE

public static final java.lang.String OC_FRAMEWORK_OPTION_TEE
See Also:
Constant Field Values

OC_SERVICE_INIT_FRAMEWORK

public static final int OC_SERVICE_INIT_FRAMEWORK
See Also:
Constant Field Values

OC_SERVICE_STATS

public static final int OC_SERVICE_STATS
See Also:
Constant Field Values

OC_SERVICE_CRAWL

public static final int OC_SERVICE_CRAWL
See Also:
Constant Field Values

OC_SERVICE_LIST

public static final int OC_SERVICE_LIST
See Also:
Constant Field Values

OC_SERVICE_SEARCH

public static final int OC_SERVICE_SEARCH
See Also:
Constant Field Values

OC_SERVICE_MODEL

public static final int OC_SERVICE_MODEL
See Also:
Constant Field Values

OC_SERVICE_OPEN

public static final int OC_SERVICE_OPEN
See Also:
Constant Field Values

OC_SERVICE_SCORE

public static final int OC_SERVICE_SCORE
See Also:
Constant Field Values

OC_SERVICE_GENERATE_REPORT

public static final int OC_SERVICE_GENERATE_REPORT
See Also:
Constant Field Values

OC_SERVICE_GET_REPORT

public static final int OC_SERVICE_GET_REPORT
See Also:
Constant Field Values

OC_REPORT_TXT_FORMAT

public static final java.lang.String OC_REPORT_TXT_FORMAT
See Also:
Constant Field Values

OC_REPORT_HTML_FORMAT

public static final java.lang.String OC_REPORT_HTML_FORMAT
See Also:
Constant Field Values

OC_REPORT_XML_FORMAT

public static final java.lang.String OC_REPORT_XML_FORMAT
See Also:
Constant Field Values

OC_REPORT_CSV_FORMAT

public static final java.lang.String OC_REPORT_CSV_FORMAT
See Also:
Constant Field Values
Constructor Detail

Cons

public Cons()
Method Detail

name2Language

public static final int name2Language(java.lang.String name)
Given a language name, returns the language id code

Parameters:
name - the language name
Returns:
the language id code for supported languages or -1 otherwise.

language2Name

public static final java.lang.String language2Name(int code)
Given a language id code, returns the language name

Parameters:
code - the language id code
Returns:
the language name. Please note that the return values is significant only for languages supported by Orizon

severity2Name

public static final java.lang.String severity2Name(int code)

name2Severity

public static final int name2Severity(java.lang.String name)

name2Impact

public static final int name2Impact(java.lang.String name)

impact2Name

public static final java.lang.String impact2Name(int code)

deTokenize

public static final java.util.Vector<java.lang.String> deTokenize(java.lang.String list,
                                                                  java.lang.String delim)