Changeset 53f5c27


Ignore:
Timestamp:
Mar 24, 2011 10:14:59 PM (8 years ago)
Author:
Ted Faber <faber@…>
Branches:
abac0-leak, abac0-mei, compt_changes, gec13, master, mei-id, mei-rt0-n, mei_rt0, mei_rt2, mei_rt2_fix_1, meiyap-rt1, meiyap1, rt2, tvf-new-xml
Children:
1a80501
Parents:
0595372
Message:

checkpoint

Location:
java/net/deterlab/abac
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • java/net/deterlab/abac/Context.java

    r0595372 r53f5c27  
    159159    }
    160160
    161 
    162     /**
    163      * Returns a Query object which can be used to query the graph. This object
    164      * becomes invalid if the graph is modified.
    165      */
    166     public Query querier() {
    167         derive_implied_edges();
    168         return new Query(g);
    169     }
     161    public boolean knowsIdentity(Identity i) { return identities.contains(i); }
     162    public boolean knowsKeyID(String k) {
     163        boolean known = false;
     164        for (Identity i: identities)
     165            if (k.equals(i.getKeyID())) return true;
     166        return false;
     167    }
     168
    170169
    171170    /**
  • java/net/deterlab/abac/Role.java

    r0595372 r53f5c27  
    3838        else {
    3939            m_prereqs = new Role[isect_roles.length];
     40
     41            // trim() handles arbitrary whitespace
    4042            for (int i = 0; i < isect_roles.length; ++i)
    41                 m_prereqs[i] = new Role(isect_roles[i].trim()); // trim() handles arbitrary whitespace
     43                m_prereqs[i] = new Role(isect_roles[i].trim());
    4244
    4345            // this make is_principal etc. work properly
Note: See TracChangeset for help on using the changeset viewer.