source: examples/creddy_prover_tests/evaluator_rt1/run_query @ 08b8da7

mei_rt2mei_rt2_fix_1
Last change on this file since 08b8da7 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
RevLine 
[ab30fdd]1
2# evaluator_rt1_typed
3
4pwd=`pwd`
[08b8da7]5eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'`
6if [ "$eloc" = "" ]; then
7  echo "ERROR: abac_prover_yap is not in the search path!!!"
8  exit 1
9fi
[ab30fdd]10keyloc=$pwd
11
12isi=`creddy --keyid --cert ISI_ID.pem`
13usc=`creddy --keyid --cert USC_ID.pem`
14maryann=`creddy --keyid --cert Maryann_ID.pem`
15john=`creddy --keyid --cert John_ID.pem`
16
17usc_employee="[keyid:$usc].role:employee"
18usc_eval_maryann="[keyid:$usc].role:evaluatorOf([keyid:$maryann])"
19isi_manager_maryann="[keyid:$isi].role:managerOf([keyid:$maryann])"
20john_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]
26echo " "
27echo "===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]
31echo " "
32echo "===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
38echo " "
39echo "===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.