12.4.3. Realm-Based Authorization
This method allows you to perform authorization based on the realm an user belongs to. Access is only granted if the user belongs to a specific
Partition.
To configure this method of authorization for a specific path just do:
httpBuilder .forPath("/acme/*") .authorizeWith() .realm("Acme");
Here, the
realm method expects one or more realm names. In this case, only users from a Partition with name Acme are allowed to access a given path.
You can also specify the
Partition type instead. For example:
httpBuilder .forPath("/acme/*") .authorizeWith() .realm(Acme.class.getName());
Where
Acme is a Partition type.

