About
A (security) realm is:
- a administrative domain
- security policy domain
- container
- a protection spaces (It gives namespace functionality. One user may exist in two different realms)
for the authentication and authorization mechanisms that are used to restrict access to resources of an application.
Each security realm consists of a set of:
- configured security providers,
- users,
- groups,
- security roles,
- security policies.
A user must be defined in a security realm in order to access any resources belonging to that realm.
A realm is a complete database of users and groups identified as valid users of one or more applications and controlled by the same authentication policy.
When a user attempts to access a particular resource, the application tries to authenticate and authorize the user by checking the security role assigned to the user in the relevant security realm and the security policy of the particular resource.