mei_rt2mei_rt2_fix_1
Last change
on this file since c6d5da3 was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Rev | Line | |
---|
[ab30fdd] | 1 | |
---|
| 2 | # evaluator_rt1_typed |
---|
| 3 | |
---|
| 4 | pwd=`pwd` |
---|
[08b8da7] | 5 | eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'` |
---|
| 6 | if [ "$eloc" = "" ]; then |
---|
| 7 | echo "ERROR: abac_prover_yap is not in the search path!!!" |
---|
| 8 | exit 1 |
---|
| 9 | fi |
---|
[ab30fdd] | 10 | keyloc=$pwd |
---|
| 11 | |
---|
| 12 | isi=`creddy --keyid --cert ISI_ID.pem` |
---|
| 13 | usc=`creddy --keyid --cert USC_ID.pem` |
---|
| 14 | maryann=`creddy --keyid --cert Maryann_ID.pem` |
---|
| 15 | john=`creddy --keyid --cert John_ID.pem` |
---|
| 16 | |
---|
| 17 | usc_employee="[keyid:$usc].role:employee" |
---|
| 18 | usc_eval_maryann="[keyid:$usc].role:evaluatorOf([keyid:$maryann])" |
---|
| 19 | isi_manager_maryann="[keyid:$isi].role:managerOf([keyid:$maryann])" |
---|
| 20 | john_prin="[keyid:$john]" |
---|
| 21 | |
---|
| 22 | ## dump all credentials |
---|
| 23 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
| 24 | |
---|
| 25 | #[keyid:USC].role:evaluatorOf([keyid:Maryann]) <-?- [keyid:John] |
---|
| 26 | echo " " |
---|
| 27 | echo "===good============ USC.evaluatorOf(Maryann) <- John" |
---|
| 28 | $eloc/abac_prover_yap --keystore $keyloc --role "$usc_eval_maryann" --principal "$john_prin" |
---|
| 29 | |
---|
| 30 | #[keyid:ISI].role:managerOf([keyid:Maryann]) <-?- [keyid:John] |
---|
| 31 | echo " " |
---|
| 32 | echo "===good============ ISI.managerOf(Maryann) <- John" |
---|
| 33 | $eloc/abac_prover_yap --keystore $keyloc --role "$isi_manager_maryann" --principal "$john_prin" |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | #[keyid:USC].role:employee <- [keyid:John]" |
---|
| 37 | #USC.employee <-?- John |
---|
| 38 | echo " " |
---|
| 39 | echo "===good============ USC.employee <-?- John" |
---|
| 40 | $eloc/abac_prover_yap --keystore $keyloc --role "$usc_employee" --principal "$john_prin" |
---|
| 41 | |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.