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