source: examples/creddy_prover_tests/balltime_rt2/run_query @ d0efdec

mei_rt2
Last change on this file since d0efdec 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.6 KB
RevLine 
[7b548fa]1
[9502c50]2# balltime_rt2_typed
[7b548fa]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
[7b548fa]10keyloc=$pwd
11
12league=`creddy --keyid --cert $keyloc/League_ID.pem`
13john=`creddy --keyid --cert $keyloc/John_ID.pem`
14mark=`creddy --keyid --cert $keyloc/Mark_ID.pem`
15
[4b8e1c9]16stadium_accessT="[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T130000])"
17stadium_accessT2="[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T110000])"
18stadium_accessT3="[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T080000])"
[7b548fa]19
20john_prin="[keyid:$john]"
21mark_prin="[keyid:$mark]"
22
23## dump all credentials
24$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
25
[4b8e1c9]26#[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T130000]) <-?- [keyid:john] (yes)
[7b548fa]27echo " "
[9502c50]28echo "===good============ league.stadium(access,true,20120128T130000)<-?-john"
[7b548fa]29$eloc/abac_prover_yap  --keystore $keyloc --role "$stadium_accessT" --principal "$john_prin"
30
[4b8e1c9]31#[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T110000]) <-?- [keyid:mark] (no)
[7b548fa]32echo " "
[9502c50]33echo "===bad============ league.stadium(access,true,20120128T110000)<-?-mark"
[7b548fa]34$eloc/abac_prover_yap  --keystore $keyloc --role "$stadium_accessT2" --principal "$mark_prin"
35
[4b8e1c9]36#[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T080000]) <-?- [keyid:mark] (yes)
[7b548fa]37echo " "
[9502c50]38echo "===good============ league.stadium(access,true,20120128T080000)<-?-mark"
[7b548fa]39$eloc/abac_prover_yap  --keystore $keyloc --role "$stadium_accessT3" --principal "$mark_prin"
40
Note: See TracBrowser for help on using the repository browser.