mei_rt2mei_rt2_fix_1
Last change
on this file since 5f551d3 was
7211a95,
checked in by Mei <mei@…>, 13 years ago
|
1) add more python examples
2) add the missing linking role and linking oset api calls
3) fix the output of time typed data term/oset obj in typed_string format
(transform back from yap time format to our ddddddddTdddddd format
|
-
Property mode set to
100755
|
File size:
645 bytes
|
Rev | Line | |
---|
[7211a95] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | Setup 4 principal ID credentials |
---|
| 5 | |
---|
| 6 | Acme, Coyote, Roadrunner and Jackrabbit |
---|
| 7 | |
---|
| 8 | """ |
---|
| 9 | import os |
---|
| 10 | import ABAC |
---|
| 11 | |
---|
| 12 | ctxt = ABAC.Context() |
---|
| 13 | |
---|
| 14 | acme=ABAC.ID("Acme", 0) |
---|
| 15 | acme.id_write_cert("Acme_ID.pem") |
---|
| 16 | acme.id_write_privkey("Acme_private.pem") |
---|
| 17 | |
---|
| 18 | coyote=ABAC.ID("Coyote", 0) |
---|
| 19 | coyote.id_write_cert("Coyote_ID.pem") |
---|
| 20 | coyote.id_write_privkey("Coyote_private.pem") |
---|
| 21 | |
---|
| 22 | roadrunner=ABAC.ID("Roadrunner", 0) |
---|
| 23 | roadrunner.id_write_cert("Roadrunner_ID.pem") |
---|
| 24 | roadrunner.id_write_privkey("Roadrunner_private.pem") |
---|
| 25 | |
---|
| 26 | jackrabbit=ABAC.ID("Jackrabbit", 0) |
---|
| 27 | jackrabbit.id_write_cert("Jackrabbit_ID.pem") |
---|
| 28 | jackrabbit.id_write_privkey("Jackrabbit_private.pem") |
---|
| 29 | |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.