LIM License Directives

Fortify Static Code Analyzer provides directives to manage the usage of your LIM license. You can store or clear the LIM license pool credentials. You can also request (and release) a detached lease for offline analysis if the specified license pool permits detached leases.

Note: By default, Fortify Static Code Analyzer requires an HTTPS connection to the LIM server and you must have a trusted certificate. For more information, see Adding Trusted Certificates.

Use the directives described in the following table for a license managed by the LIM.

Directive Description
-store-license-pool-credentials "<lim_url>|<lim_pool_name>|<lim_pool_pwd>|<proxy_url>|<proxy_user>|<proxy_pwd>"

Stores your LIM license pool credentials so that Fortify Static Code Analyzer uses the LIM for licensing. The proxy information is optional. Fortify Static Code Analyzer stores the pool password and the proxy credentials provided with this directive in the fortify-sca.properties file as encrypted data. If your license pool credentials change after you have installed Fortify Static Code Analyzer, you can run this directive again to save the new credentials.

Example:

sourceanalyzer -store-license-pool-credentials
 "https://<ip_address>/LIM.REST.API|TeamA|mypassword"

Associated Property Names:
com.fortify.sca.lim.Url
com.fortify.sca.lim.PoolName
com.fortify.sca.lim.PoolPassword
com.fortify.sca.lim.ProxyUrl
com.fortify.sca.lim.ProxyUsername
com.fortify.sca.lim.ProxyPassword

-clear-license-pool-credentials

Removes the LIM license pool credentials from the fortify-sca.properties file. If your license pool credentials change, you can remove them with this directive, and then use the -store-license-pool-credentials directive to save the new credentials.

-request-detached-lease <duration>

Requests a detached lease from the LIM license pool for exclusive use on this system for the specified duration (in minutes). This enables you to run Fortify Static Code Analyzer even when disconnected from your corporate intranet.

Note: To use this directive, the license pool must be configured to allow detached leases.

-release-detached-lease Releases a detached lease back to the license pool.