KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > policyframework > Rule


1 package com.sslexplorer.policyframework;
2
3
4 /**
5  *
6  * @author brett
7  */

8 public interface Rule {
9     
10     /**
11      * Get the ID of a rule
12      * @return
13      */

14     public int getId();
15     
16     /**
17      * Determine if the rule matches.
18      *
19      * @param resource resource the rule applies to
20      * @param principal pricipal being tested.
21      * @return allowed
22      */

23     public boolean isAllowed(AccessRights resource, Principal principal);
24 }
25
Popular Tags