Authorization Policy Storage

The authorization policy file is stored in a file called WEB-INF/classes/ stored under the application's WAR structure.

Here is an example of a security policy:

# Role "admin"

# Role "user"

The format of the key/value pairs is:



  • classifier = role|group
  • identifier = An existing role or group identifier (depending on the classifier type)
  • setting = home|priority|permission
  • extra = Extra setting information. Mandatory for instance to define the permission's name
  • value = The setting value (depends on the setting selected). Value expected per setting type:
    • home: An existing perspective identifier to redirect after login
    • priority: An integer indicating how priority is this role|group compared to others. Used for conflict resolution.
    • permission: A boolean indicating if the permission setting is granted or denied.

Permissions, home perspectives and role priorities are all defined in the same file. In some cases though, it might be appropriate to split the policy into several files, basically for two main reasons:

  • Separation of concerns
  • Maintainability

The main policy can be split into several security-module files each of them contaning a subset of the entries. For example:

# Security policy marker file.
# All the files starting with the "security-module" prefix will be loaded and
# included as part of the global authorization policy.



Notice, despite using the split approach, the must always be present as it is used as a marker file by the security subsystem in order to locate the other policy files.

This split mechanism allows for a better organization of the whole security policy. Use it at your best convenience.

results matching ""

    No results matching ""