License: Apache 2.0
Status: Beta
Dependencies: Java 1.5, works without any third party jars.
Contact: stephan@codehaus.org
Gabriel is a security framework to restrict actions of users. It's suited for use with IoC containers, especially Google Guice. Think about EJB security but without EJB. Gabriel is a security framework for Java. By using access control lists and permissions, Gabriel enables components to check access to actions. On top of that Gabriel protects methods like EJB does but without the overhead. It distinguishes itself from other frameworks by the ease of use with a small API and by mapping method access to permissions instead of persons. This way the same permissions can be used to protect method access and to check which GUI elements to show based on user permissions.
Example with Google Guice:
First we create our user called subject in Gabriel. Subjects can have several principals (roles), our user ("We") doesn't get any principals. The principal is stored as a thread local object.Example:
runs the example.