Package

org.opalj

config

Permalink

package config

Visibility
  1. Public
  2. All

Value Members

  1. object JavaSecurityConfigurationInfo

    Permalink

    This analysis reports the specified security properties of the used JVM.

    This analysis reports the specified security properties of the used JVM. We are in particular interested in the information about the restricted packages. These information can only be leveraged if the security manager is set before starting the program. Setting the SecurityManager in the program's main function is to late since a lot of classes has been load already.

    The package.definition property is by default not checked by any class loader. Hence, it is not safe to leverage this information.

    There are two kinds of packages where a "java.lang.SecurityException" is thrown.

    1. packages with access restrictions: (package.access property)

    List of comma-separated packages that start with or equal this string will cause a security exception to be thrown when passed to checkPackageAccess unless the corresponding RuntimePermission ("accessClassInPackage."+package) has been granted.

    2. packages with (package.definition property)

    List of comma-separated packages that start with or equal this string will cause a security exception to be thrown when passed to checkPackageDefinition unless the corresponding RuntimePermission ("defineClassInPackage."+package) has been granted.

    by default, none of the class loaders supplied with the JDK call checkPackageDefinition.

    Commandline Arguments: -conf | shows the current (merged) opal configuration

Ungrouped