mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change
on this file since 4b8e1c9 was
7b548fa,
checked in by Mei <mei@…>, 13 years ago
|
1) add time static constraint
2) add example balltime_rt2_typed
3) change the way that time is being kept
from 20120228T080000 to time(2012,2,28,8,0,0) and
the constraint check is via compare(op,time1,time2)
|
-
Property mode set to
100755
|
File size:
1.4 KB
|
Line | |
---|
1 | rm -rf creds_dump |
---|
2 | |
---|
3 | pwd=`pwd` |
---|
4 | |
---|
5 | #eloc=/home/mei/Deter/abac/libabac |
---|
6 | eloc=$pwd/../../libabac |
---|
7 | #keyloc=/home/mei/Deter/abac/examples/alumni_rt1_typed |
---|
8 | keyloc=$pwd |
---|
9 | |
---|
10 | stateU=`creddy --keyid --cert $keyloc/StateU_ID.pem` |
---|
11 | bob=`creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
12 | maryann=`creddy --keyid --cert $keyloc/Maryann_ID.pem` |
---|
13 | joe=`creddy --keyid --cert $keyloc/Joe_ID.pem` |
---|
14 | |
---|
15 | stateU_foundingAlumni="[keyid:$stateU].role:foundingAlumni" |
---|
16 | bob_prin="[keyid:$bob]" |
---|
17 | maryann_prin="[keyid:$maryann]" |
---|
18 | joe_prin="[keyid:$joe]" |
---|
19 | |
---|
20 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Bob] (no) |
---|
21 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Maryann] (yes) |
---|
22 | |
---|
23 | ## dump all credentials |
---|
24 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
25 | |
---|
26 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Bob] (no) |
---|
27 | echo " " |
---|
28 | echo "===bad============ stateU.foundingAlumni <- Bob yap " |
---|
29 | $eloc/abac_prover_yap --keystore $keyloc --role "$stateU_foundingAlumni" --principal "$bob_prin" |
---|
30 | |
---|
31 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Maryann] (yes) |
---|
32 | # asking, isMember(pMaryann,role(pStateU,foundingAlumni),C). |
---|
33 | echo " " |
---|
34 | echo "===good============ stateU.foundingAlumni <- Maryann yap " |
---|
35 | $eloc/abac_prover_yap --keystore $keyloc --role "$stateU_foundingAlumni" --principal "$maryann_prin" |
---|
36 | |
---|
37 | |
---|
38 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Joe] (yes) |
---|
39 | echo " " |
---|
40 | echo "===good============ stateU.foundingAlumni <- Joe yap " |
---|
41 | $eloc/abac_prover_yap --keystore $keyloc --role "$stateU_foundingAlumni" --principal "$joe_prin" |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.