Changeset 83cdf0f


Ignore:
Timestamp:
Mar 26, 2011 11:48:10 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:
216c1d8
Parents:
388a3d7
Message:

Add constructor from a Credential Collection

File:
1 edited

Legend:

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

    r388a3d7 r83cdf0f  
    121121
    122122    /**
     123     * Create a Context from a collection of Credentials.  A jabac extension.
     124     * @param creds the collection of credentials
     125     */
     126    public Context(Collection<Credential> creds) {
     127        this();
     128        for (Credential c: creds) {
     129            Identity i = c.issuer();
     130
     131            if (i != null ) load_id_chunk(i);
     132            load_attribute_chunk(c);
     133        }
     134    }
     135
     136    /**
    123137     * Load an Identity from a file.
    124138     * @param fn a String containing the file name.
Note: See TracChangeset for help on using the changeset viewer.