mei_rt2mei_rt2_fix_1
Last change
on this file since 2be9809 was
f824a9e,
checked in by Mei <mei@…>, 13 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
587 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | See README for the semantics. This creates principals |
---|
5 | used by the example. |
---|
6 | """ |
---|
7 | import os |
---|
8 | import ABAC |
---|
9 | |
---|
10 | ctxt = ABAC.Context() |
---|
11 | |
---|
12 | isiID=ABAC.ID("ISI", 0) |
---|
13 | isiID.id_write_cert("ISI_ID.pem") |
---|
14 | isiID.id_write_privkey("ISI_private.pem") |
---|
15 | |
---|
16 | uscID=ABAC.ID("USC", 0) |
---|
17 | uscID.id_write_cert("USC_ID.pem") |
---|
18 | uscID.id_write_privkey("USC_private.pem") |
---|
19 | |
---|
20 | maryannID=ABAC.ID("Maryann", 0) |
---|
21 | maryannID.id_write_cert("Maryann_ID.pem") |
---|
22 | maryannID.id_write_privkey("Maryann_private.pem") |
---|
23 | |
---|
24 | johnID=ABAC.ID("John", 0) |
---|
25 | johnID.id_write_cert("John_ID.pem") |
---|
26 | johnID.id_write_privkey("John_private.pem") |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.