Class CoreConfiguration


  • public class CoreConfiguration
    extends Object
    Wraps VulasConfiguration for accessing core-specific configuration settings.
    • Field Detail

      • TENANT_TOKEN

        public static final String TENANT_TOKEN
        Constant TENANT_TOKEN="vulas.core.tenant.token"
        See Also:
        Constant Field Values
      • SPACE_DESCR

        public static final String SPACE_DESCR
        Constant SPACE_DESCR="vulas.core.space.description"
        See Also:
        Constant Field Values
      • SPACE_EXPCFG

        public static final String SPACE_EXPCFG
        Constant SPACE_EXPCFG="vulas.core.space.exportConfiguration"
        See Also:
        Constant Field Values
      • SPACE_PUBLIC

        public static final String SPACE_PUBLIC
        Constant SPACE_PUBLIC="vulas.core.space.public"
        See Also:
        Constant Field Values
      • SPACE_BUGFLT

        public static final String SPACE_BUGFLT
        Constant SPACE_BUGFLT="vulas.core.space.bugFilter"
        See Also:
        Constant Field Values
      • SPACE_OWNERS

        public static final String SPACE_OWNERS
        Constant SPACE_OWNERS="vulas.core.space.bugFilter"
        See Also:
        Constant Field Values
      • APP_CTX_GROUP

        public static final String APP_CTX_GROUP
        Constant APP_CTX_GROUP="vulas.core.appContext.group"
        See Also:
        Constant Field Values
      • APP_CTX_ARTIF

        public static final String APP_CTX_ARTIF
        Constant APP_CTX_ARTIF="vulas.core.appContext.artifact"
        See Also:
        Constant Field Values
      • APP_CTX_VERSI

        public static final String APP_CTX_VERSI
        Constant APP_CTX_VERSI="vulas.core.appContext.version"
        See Also:
        Constant Field Values
      • BACKEND_CONNECT

        public static final String BACKEND_CONNECT
        Constant BACKEND_CONNECT="vulas.core.backendConnection"
        See Also:
        Constant Field Values
      • UPLOAD_DEL_AFTER

        public static final String UPLOAD_DEL_AFTER
        Constant UPLOAD_DEL_AFTER="vulas.core.upload.deleteAfterSuccess"
        See Also:
        Constant Field Values
      • UPLOAD_MAX_SIZE

        public static final String UPLOAD_MAX_SIZE
        Constant UPLOAD_MAX_SIZE="vulas.core.upload.maxSize"
        See Also:
        Constant Field Values
      • REPEAT_WAIT

        public static final String REPEAT_WAIT
        Constant REPEAT_WAIT="vulas.core.repeatHttp.waitMilli"
        See Also:
        Constant Field Values
      • JAR_TIMEOUT

        public static final String JAR_TIMEOUT
        Constant JAR_TIMEOUT="vulas.core.jarAnalysis.timeout"
        See Also:
        Constant Field Values
      • CLEAN_HISTORY

        public static final String CLEAN_HISTORY
        Constant CLEAN_HISTORY="vulas.core.clean.goalHistory"
        See Also:
        Constant Field Values
      • CLEAN_PURGE_VERSIONS

        public static final String CLEAN_PURGE_VERSIONS
        Constant CLEAN_PURGE_VERSIONS="vulas.core.clean.purgeVersions"
        See Also:
        Constant Field Values
      • CLEAN_PURGE_KEEP_LAST

        public static final String CLEAN_PURGE_KEEP_LAST
        Constant CLEAN_PURGE_KEEP_LAST="vulas.core.clean.purgeVersions.keepLast"
        See Also:
        Constant Field Values
      • APP_PREFIXES

        public static final String APP_PREFIXES
        Constant APP_PREFIXES="vulas.core.app.appPrefixes"
        See Also:
        Constant Field Values
      • APP_JAR_NAMES

        public static final String APP_JAR_NAMES
        Constant APP_JAR_NAMES="vulas.core.app.appJarNames"
        See Also:
        Constant Field Values
      • APP_UPLOAD_EMPTY

        public static final String APP_UPLOAD_EMPTY
        Constant APP_UPLOAD_EMPTY="vulas.core.app.uploadEmpty"
        See Also:
        Constant Field Values
      • APP_LIB_UPLOAD

        public static final String APP_LIB_UPLOAD
        Constant APP_LIB_UPLOAD="vulas.core.app.uploadLibrary"
        See Also:
        Constant Field Values
      • REP_AGGR_MODULES

        public static final String REP_AGGR_MODULES
        Constant REP_AGGR_MODULES="vulas.report.aggregateModules"
        See Also:
        Constant Field Values
      • REP_EXC_THRESHOLD

        public static final String REP_EXC_THRESHOLD
        Constant REP_EXC_THRESHOLD="vulas.report.exceptionThreshold"
        See Also:
        Constant Field Values
      • REP_OVERRIDE_VER

        public static final String REP_OVERRIDE_VER
        Constant REP_OVERRIDE_VER="vulas.report.overridePomVersion"
        See Also:
        Constant Field Values
      • REP_CREATE_AFF_LIB

        public static final String REP_CREATE_AFF_LIB
        Constant REP_LIB_ASSESS="vulas.report.createLibraryAssessments"
        See Also:
        Constant Field Values
      • SEQ_DEFAULT

        public static final String SEQ_DEFAULT
        Constant SEQ_DEFAULT="vulas.core.sequence.defaultGoals"
        See Also:
        Constant Field Values
      • SIGN_BUGS0

        public static final String SIGN_BUGS0
        Constant SIGN_BUGS0="vulas.core.sign.saveEditScripts"
        See Also:
        Constant Field Values
      • SIGN_BUGS1

        public static final String SIGN_BUGS1
        Constant SIGN_BUGS1="vulas.core.sign.saveEditScriptIntersect"{trunked}
        See Also:
        Constant Field Values
      • SIGN_BUGS2

        public static final String SIGN_BUGS2
        Constant SIGN_BUGS2="vulas.core.sign.saveDecompiledArchive"
        See Also:
        Constant Field Values
      • SIGN_BUGS3

        public static final String SIGN_BUGS3
        Constant SIGN_BUGS3="vulas.core.sign.showDecompiledConstruct"
        See Also:
        Constant Field Values
      • SIGN_BUGS4

        public static final String SIGN_BUGS4
        Constant SIGN_BUGS4="vulas.core.sign.relaxDecompiler"
        See Also:
        Constant Field Values
      • SIGN_BUGS5

        public static final String SIGN_BUGS5
        Constant SIGN_BUGS5="vulas.core.sign.relaxEditScript"
        See Also:
        Constant Field Values
      • SIGN_BUGS6

        public static final String SIGN_BUGS6
        Constant SIGN_BUGS6="vulas.core.sign.relaxEqualIgnoreParentR"{trunked}
        See Also:
        Constant Field Values
      • SIGN_BUGS7

        public static final String SIGN_BUGS7
        Constant SIGN_BUGS7="vulas.core.sign.relaxStripFinals"
        See Also:
        Constant Field Values
      • SIGN_BUGS8

        public static final String SIGN_BUGS8
        Constant SIGN_BUGS8="vulas.core.sign.relaxRelaxedByDefault"
        See Also:
        Constant Field Values
      • INSTR_SRC_DIR

        public static final String INSTR_SRC_DIR
        Constant INSTR_SRC_DIR="vulas.core.instr.sourceDir"
        See Also:
        Constant Field Values
      • INSTR_SEARCH_RECURSIVE

        public static final String INSTR_SEARCH_RECURSIVE
        Constant INSTR_SEARCH_RECURSIVE="vulas.core.instr.searchRecursive"
        See Also:
        Constant Field Values
      • INSTR_TARGET_DIR

        public static final String INSTR_TARGET_DIR
        Constant INSTR_TARGET_DIR="vulas.core.instr.targetDir"
        See Also:
        Constant Field Values
      • INSTR_INCLUDE_DIR

        public static final String INSTR_INCLUDE_DIR
        Constant INSTR_INCLUDE_DIR="vulas.core.instr.includeDir"
        See Also:
        Constant Field Values
      • INSTR_LIB_DIR

        public static final String INSTR_LIB_DIR
        Constant INSTR_LIB_DIR="vulas.core.instr.libDir"
        See Also:
        Constant Field Values
      • INSTR_CHOOSEN_INSTR

        public static final String INSTR_CHOOSEN_INSTR
        Constant INSTR_CHOOSEN_INSTR="vulas.core.instr.instrumentorsChoosen"
        See Also:
        Constant Field Values
      • INSTR_MAX_STACKTRACES

        public static final String INSTR_MAX_STACKTRACES
        Constant INSTR_MAX_STACKTRACES="vulas.core.instr.maxStacktraces"
        See Also:
        Constant Field Values
      • INSTR_WRITE_CODE

        public static final String INSTR_WRITE_CODE
        Constant INSTR_WRITE_CODE="vulas.core.instr.writeCode"
        See Also:
        Constant Field Values
      • INSTR_FLD_ANNOS

        public static final String INSTR_FLD_ANNOS
        Constant INSTR_FLD_ANNOS="vulas.core.instr.fieldAnnotations"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_DIRS

        public static final String INSTR_BLACKLIST_DIRS
        Constant INSTR_BLACKLIST_DIRS="vulas.core.instr.blacklist.dirs"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_JAR_SCOPES

        public static final String INSTR_BLACKLIST_JAR_SCOPES
        Constant INSTR_BLACKLIST_JAR_SCOPES="vulas.core.instr.blacklist.jars.ignoreS"{trunked}
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_JARS

        public static final String INSTR_BLACKLIST_JARS
        Constant INSTR_BLACKLIST_JARS="vulas.core.instr.blacklist.jars"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_CUSTOM_JARS

        public static final String INSTR_BLACKLIST_CUSTOM_JARS
        Constant INSTR_BLACKLIST_CUSTOM_JARS="vulas.core.instr.blacklist.jars.custom"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_CLASSES

        public static final String INSTR_BLACKLIST_CLASSES
        Constant INSTR_BLACKLIST_CLASSES="vulas.core.instr.blacklist.classes"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_JRE_CLASSES

        public static final String INSTR_BLACKLIST_JRE_CLASSES
        Constant INSTR_BLACKLIST_JRE_CLASSES="vulas.core.instr.blacklist.classes.jre"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_CUSTOM_CLASSES

        public static final String INSTR_BLACKLIST_CUSTOM_CLASSES
        Constant INSTR_BLACKLIST_CUSTOM_CLASSES="vulas.core.instr.blacklist.classes.cust"{trunked}
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_CLASSLOADER

        public static final String INSTR_BLACKLIST_CLASSLOADER
        Constant INSTR_BLACKLIST_CLASSLOADER="vulas.core.instr.blacklist.classloader"
        See Also:
        Constant Field Values
      • INSTR_BLACKLIST_CLASSLOADER_ACC_CHILD

        public static final String INSTR_BLACKLIST_CLASSLOADER_ACC_CHILD
        Constant INSTR_BLACKLIST_CLASSLOADER_ACC_CHILD="vulas.core.instr.whitelist.classloader."{trunked}
        See Also:
        Constant Field Values
      • INSTR_SLICE_WHITELIST

        public static final String INSTR_SLICE_WHITELIST
        Constant INSTR_SLICE_WHITELIST="vulas.core.instr.slice.whitelist"
        See Also:
        Constant Field Values
      • INSTR_SLICE_BLACKLIST

        public static final String INSTR_SLICE_BLACKLIST
        Constant INSTR_SLICE_BLACKLIST="vulas.core.instr.slice.blacklist"
        See Also:
        Constant Field Values
      • INSTR_SLICE_GUARD_OPEN

        public static final String INSTR_SLICE_GUARD_OPEN
        Constant INSTR_SLICE_GUARD_OPEN="vulas.core.instr.slice.guardOpen"
        See Also:
        Constant Field Values
      • MONI_PERIODIC_UPL_ENABLED

        public static final String MONI_PERIODIC_UPL_ENABLED
        Constant MONI_PERIODIC_UPL_ENABLED="vulas.core.monitor.periodicUpload.enabl"{trunked}
        See Also:
        Constant Field Values
      • MONI_PERIODIC_UPL_INTERVAL

        public static final String MONI_PERIODIC_UPL_INTERVAL
        Constant MONI_PERIODIC_UPL_INTERVAL="vulas.core.monitor.periodicUpload.inter"{trunked}
        See Also:
        Constant Field Values
      • MONI_PERIODIC_UPL_BATCH_SIZE

        public static final String MONI_PERIODIC_UPL_BATCH_SIZE
        Constant MONI_PERIODIC_UPL_BATCH_SIZE="vulas.core.monitor.periodicUpload.batch"{trunked}
        See Also:
        Constant Field Values
      • MONI_PERIODIC_MAX_ITEMS

        public static final String MONI_PERIODIC_MAX_ITEMS
        Constant MONI_PERIODIC_MAX_ITEMS="vulas.core.monitor.maxItems"
        See Also:
        Constant Field Values
      • MONI_BLACKLIST_JARS

        public static final String MONI_BLACKLIST_JARS
        Constant MONI_BLACKLIST_JARS="vulas.core.monitor.blacklist.jars"
        See Also:
        Constant Field Values
    • Constructor Detail

      • CoreConfiguration

        public CoreConfiguration()
    • Method Detail

      • getAppContext

        public static Application getAppContext()
                                         throws org.apache.commons.configuration.ConfigurationException
        Reads configuration settings in order to instantiate an Application.
        Returns:
        an Application
        Throws:
        org.apache.commons.configuration.ConfigurationException - if the instantiation fails.
      • getAppContext

        public static Application getAppContext​(VulasConfiguration _c)
                                         throws org.apache.commons.configuration.ConfigurationException

        getAppContext.

        Parameters:
        _c - a VulasConfiguration object.
        Returns:
        a Application object.
        Throws:
        org.apache.commons.configuration.ConfigurationException - if any.
      • buildGoalContextFromGlobalConfiguration

        public static final GoalContext buildGoalContextFromGlobalConfiguration()
        Reads the global configuration in order to instantiate a GoalContext.
        Returns:
        a GoalContext built from the global configuration
      • existsInBackend

        public static final boolean existsInBackend​(Application _app)

        existsInBackend.

        Parameters:
        _app - a Application object.
        Returns:
        a boolean.
      • isMaxItemsCollected

        public static boolean isMaxItemsCollected​(int _count_collected_items)
        Returns true if a maximum number of items has been configured via MONI_PERIODIC_MAX_ITEMS and the given number is greater or equal to this maximum.
        Parameters:
        _count_collected_items - a int.
        Returns:
        a boolean.
      • getVulasRelease

        public static String getVulasRelease()
        Reads the Manifest file entry "Implementation-Version" from the Java archive from which this class was loaded.
        Returns:
        the Vulas release