mei_rt2mei_rt2_fix_1
Last change
on this file since 34e667d was
f824a9e,
checked in by Mei <mei@…>, 12 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
778 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | See README for the semantics. This creates many principals |
---|
5 | used by the example. |
---|
6 | """ |
---|
7 | import os |
---|
8 | import ABAC |
---|
9 | |
---|
10 | ctxt = ABAC.Context() |
---|
11 | |
---|
12 | stateU=ABAC.ID("StateU", 0) |
---|
13 | stateU.id_write_cert("StateU_ID.pem") |
---|
14 | stateU.id_write_privkey("StateU_private.pem") |
---|
15 | |
---|
16 | bob=ABAC.ID("Bob", 0) |
---|
17 | bob.id_write_cert("Bob_ID.pem") |
---|
18 | bob.id_write_privkey("Bob_private.pem") |
---|
19 | |
---|
20 | mark=ABAC.ID("Mark", 0) |
---|
21 | mark.id_write_cert("Mark_ID.pem") |
---|
22 | mark.id_write_privkey("Mark_private.pem") |
---|
23 | |
---|
24 | joe=ABAC.ID("Joe", 0) |
---|
25 | joe.id_write_cert("Joe_ID.pem") |
---|
26 | joe.id_write_privkey("Joe_private.pem") |
---|
27 | |
---|
28 | maryann=ABAC.ID("Maryann", 0) |
---|
29 | maryann.id_write_cert("Maryann_ID.pem") |
---|
30 | maryann.id_write_privkey("Maryann_private.pem") |
---|
31 | |
---|
32 | jan=ABAC.ID("Jan", 0) |
---|
33 | jan.id_write_cert("Jan_ID.pem") |
---|
34 | jan.id_write_privkey("Jan_private.pem") |
---|
35 | |
---|
36 | |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.