source: fedd/abac-src/rbtm/engine/Simp.java @ c9318dc

axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change on this file since c9318dc was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 447 bytes
Line 
1package edu.stanford.peer.rbtm.engine;
2
3import edu.stanford.peer.rbtm.credential.*;
4import edu.stanford.peer.rbtm.util.*;
5
6/**
7 * A simple predicate to fail only on role expressions which are roles.
8 */
9public class Simp implements Predicate {
10   
11    /** apply the predicate to determine if a role expression isn't a role */
12    public boolean test(EntityExpression obj) {
13        if(obj instanceof Role) {
14            return false;
15        }
16        return true;
17    }
18
19}
Note: See TracBrowser for help on using the repository browser.