source: examples/python_tests/alice_rt1/README @ c6d5da3

mei_rt2mei_rt2_fix_1
Last change on this file since c6d5da3 was f824a9e, checked in by Mei <mei@…>, 13 years ago

1) add more doc to python_tests

  • Property mode set to 100755
File size: 9.5 KB
RevLine 
[f824a9e]1#
2# trying out different data param types
3#
4# alice_rt1
5#
6#
7# [keyid:Party].role: about([keyid:tea],[time:20101010T],[boolean:true],[integer:4],
8#                  [float:-200.0],[float:8],[time:20120205T182930],[string:'a list'],
9#                  [urn:'file://usr/party/~teaparty'])
10#                  <- [keyid:Party].role:guestOf([keyid:MarchHare])
11#
12# [keyid:Party].role:about_other_party([keyid:tea],[?],[integer:99],[time:?AAA],
13#                  [integer:?BBB],[boolean:true],[integer:?]) <- [keyid:MarchHare]
14#
15# [keyid:Party].role:about_string([string:'a confused party']) <- [keyid:MarchHare]
16#
17# [keyid:Party].role:about_string2([string:'a mangled \\'string\\''])
18#                 <- [keyid:MarchHare]
19#
20# [keyid:Party].role:about_urn([urn:'file://user/local/party/~sillyparty'])
21#                 <- [keyid:MarchHare]
22#
23# [keyid:Party].role:about_another_float([float:0.22]) <- [keyid:MarchHare]
24#
25# [keyid:Party].role:about_another_float([float:8]) <- [keyid:MarchHare]
26#
27# [keyid:Party].role:about_float([float:-200.0]) <- [keyid:MarchHare]
28#
29# [keyid:Party].role:about_another_integer([integer:-7]) <- [keyid:MarchHare]
30#
31# [keyid:Party].role:about_integer([integer:4]) <- [keyid:MarchHare]
32#
33# [keyid:Party].role:about_boolean([boolean:true]) <- [keyid:MarchHare]
34#
35# [keyid:Party].role:about_key([keyid:tea]) <- [keyid:MarchHare]
36#
37# [keyid:Party].role:about_another_time([time:20201101T182930]) <- [keyid:MarchHare]
38#
39# [keyid:Party].role:about_time([time:20201101T]) <- [keyid:MarchHare]
40#
41# [keyid:Party].role:guestof([principal:?V])
42#                           <- [keyid:Party].role:friendOf([principal:?V])
43#
44# [keyid:Party].role:guests <- [keyid:Party].role:friendOf([keyid:MarchHare])
45#
46# [keyid:Party].role:friendOf([keyid:MarchHare]) <- [keyid:Dormouse]
47#
48# [keyid:Party].role:friendOf([keyid:Alice]) <- [keyid:Hatter]
49
50
51
52
53
54
55
56
57
58
59
[669b481]60
61#[keyid:Party].role:about_other_party([keyid:$tea_keyid],[time:?],[boolean:true]) <- [keyid:MarchHare]
62#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_other_party\" --subject-cert MarchHare_ID.pem --out party_about_other_party__marchhare_attr.der"
63creddy --attribute \
64       --issuer Party_ID.pem --key Party_private.pem --role "$about_other_party" \
65       --subject-cert MarchHare_ID.pem \
66       --out party_about_other_party__marchhare_attr.der
67
68#[keyid:Party].role:about_string([string:'a confused party']) <- [keyid:MarchHare]
69#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_string\" --subject-cert MarchHare_ID.pem --out party_about_string__marchhare_attr.der"
70creddy --attribute \
71       --issuer Party_ID.pem --key Party_private.pem --role "$about_string" \
72       --subject-cert MarchHare_ID.pem \
73       --out party_about_string__marchhare_attr.der
74
75#[keyid:Party].role:about_string2([string:'a mangled \'string\'']) <- [keyid:MarchHare]
76#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_string2\" --subject-cert MarchHare_ID.pem --out party_about_string2__marchhare_attr.der"
77creddy --attribute \
78       --issuer Party_ID.pem --key Party_private.pem --role "$about_string2" \
79       --subject-cert MarchHare_ID.pem \
80       --out party_about_string2__marchhare_attr.der
81
82#[keyid:Party].role:about_urn([urn:'file://user/local/party/~sillyparty']) <- [keyid:MarchHare]
83#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_urn\" --subject-cert MarchHare_ID.pem --out party_about_urn__marchhare_attr.der"
84creddy --attribute \
85       --issuer Party_ID.pem --key Party_private.pem --role "$about_urn" \
86       --subject-cert MarchHare_ID.pem \
87       --out party_about_urn__marchhare_attr.der
88
89#[keyid:Party].role:about_third_float([float:0.22]) <- [keyid:MarchHare]
90#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_third_float\" --subject-cert MarchHare_ID.pem --out party_about_third_float__marchhare_attr.der"
91creddy --attribute \
92       --issuer Party_ID.pem --key Party_private.pem --role "$about_third_float" \
93       --subject-cert MarchHare_ID.pem \
94       --out party_about_third_float__marchhare_attr.der
95
96#[keyid:Party].role:about_another_float([float:8]) <- [keyid:MarchHare]
97#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_another_float\" --subject-cert MarchHare_ID.pem --out party_about_another_float__marchhare_attr.der"
98creddy --attribute \
99       --issuer Party_ID.pem --key Party_private.pem --role "$about_another_float" \
100       --subject-cert MarchHare_ID.pem \
101       --out party_about_another_float__marchhare_attr.der
102
103#[keyid:Party].role:about_float([float:-200.0]) <- [keyid:MarchHare]
104#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_float\" --subject-cert MarchHare_ID.pem --out party_about_float__marchhare_attr.der"
105creddy --attribute \
106       --issuer Party_ID.pem --key Party_private.pem --role "$about_float" \
107       --subject-cert MarchHare_ID.pem \
108       --out party_about_float__marchhare_attr.der
109
110#[keyid:Party].role:about_another_integer([integer:-7]) <- [keyid:MarchHare]
111#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_another_integer\" --subject-cert MarchHare_ID.pem --out party_about_another_integer__marchhare_attr.der"
112creddy --attribute \
113       --issuer Party_ID.pem --key Party_private.pem --role "$about_another_integer" \
114       --subject-cert MarchHare_ID.pem \
115       --out party_about_another_nteger__marchhare_attr.der
116
117#[keyid:Party].role:about_integer([integer:4]) <- [keyid:MarchHare]
118#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_integer\" --subject-cert MarchHare_ID.pem --out party_about_integer__marchhare_attr.der"
119creddy --attribute \
120       --issuer Party_ID.pem --key Party_private.pem --role "$about_integer" \
121       --subject-cert MarchHare_ID.pem \
122       --out party_about_integer__marchhare_attr.der
123
124#[keyid:Party].role:about_boolean([boolean:true]) <- [keyid:MarchHare]
125#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_boolean\" --subject-cert MarchHare_ID.pem --out party_about_boolean__marchhare_attr.der"
126creddy --attribute \
127       --issuer Party_ID.pem --key Party_private.pem --role "$about_boolean" \
128       --subject-cert MarchHare_ID.pem \
129       --out party_about_boolean__marchhare_attr.der
130
131#[keyid:Party].role:about_key([keyid:$tea_keyid]) <- [keyid:MarchHare]
132#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_key\" --subject-cert MarchHare_ID.pem --out party_about_key__marchhare_attr.der"
133creddy --attribute \
134       --issuer Party_ID.pem --key Party_private.pem --role "$about_key" \
135       --subject-cert MarchHare_ID.pem \
136       --out party_about_key__marchhare_attr.der
137
138#[keyid:Party].role:about_another_time([time:20201101T182930]) <- [keyid:MarchHare]
139#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_another_time\" --subject-cert MarchHare_ID.pem --out party_about_another_time__marchhare_attr.der"
140creddy --attribute \
141       --issuer Party_ID.pem --key Party_private.pem --role "$about_another_time" \
142       --subject-cert MarchHare_ID.pem \
143       --out party_about_another_time__marchhare_attr.der
144
145#[keyid:Party].role:about_time([time:20201101T]) <- [keyid:MarchHare]
146#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$about_time\" --subject-cert MarchHare_ID.pem --out party_about_time__marchhare_attr.der"
147creddy --attribute \
148       --issuer Party_ID.pem --key Party_private.pem --role "$about_time" \
149       --subject-cert MarchHare_ID.pem \
150       --out party_about_time__marchhare_attr.der
151
152#[keyid:Party].role:guestof([principal:?V]) <- [keyid:Party].role:friendOf([principal:?V])
153#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role 'guestOf([principal:?V])' --subject-cert Party_ID.pem --subject-role 'friendOf([principal:?V])' --out party_guestof_qV__party_friendof_qV_attr.der"
154creddy --attribute \
155       --issuer Party_ID.pem --key Party_private.pem --role 'guestOf([principal:?V])' \
156       --subject-cert Party_ID.pem --subject-role  'friendOf([principal:?V])' \
157       --out party_guestof_qV__party_friendof_qV_attr.der
158
159#[keyid:Party].role:guests <- [keyid:Party].role:friendOf([keyid:MarchHare])
160#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role guests --subject-cert Party_ID.pem --subject-role  \"$friendof_marchhare\" --out party_guests__party_friendof_marchhare_attr.der"
161creddy --attribute \
162       --issuer Party_ID.pem --key Party_private.pem --role guests \
163       --subject-cert Party_ID.pem --subject-role  "$friendof_marchhare" \
164       --out party_guests__party_friendof_marchhare_attr.der
165
166#[keyid:Party].role:friendOf([keyid:MarchHare]) <- [keyid:Dormouse]
167#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$friendof_marchhare\" --subject-cert Dormouse_ID.pem --out party_friendof_marchhare__dormouse_attr.der"
168creddy --attribute \
169       --issuer Party_ID.pem --key Party_private.pem --role "$friendof_marchhare" \
170       --subject-cert Dormouse_ID.pem \
171       --out party_friendof_marchhare__dormouse_attr.der
172
173#[keyid:Party].role:friendOf([keyid:Alice]) <- [keyid:Hatter]
174#echo "creddy --attribute --issuer Party_ID.pem --key Party_private.pem --role \"$friendof_alice\" --subject-cert Hatter_ID.pem --out party_friendof_alice__hatter_attr.der"
175creddy --attribute \
176       --issuer Party_ID.pem --key Party_private.pem --role "$friendof_alice" \
177       --subject-cert Hatter_ID.pem \
178       --out party_friendof_alice__hatter_attr.der
179
180
Note: See TracBrowser for help on using the repository browser.