1 package com.sslexplorer.policyframework;2 3 4 /**5 * 6 * @author brett7 */8 public interface Rule {9 10 /**11 * Get the ID of a rule12 * @return13 */14 public int getId();15 16 /**17 * Determine if the rule matches. 18 * 19 * @param resource resource the rule applies to20 * @param principal pricipal being tested.21 * @return allowed22 */23 public boolean isAllowed(AccessRights resource, Principal principal);24 }25