abac0-leakabac0-mei
Last change
on this file since 6cd69a0 was
ec550f7,
checked in by Mei <mei@…>, 11 years ago
|
1) reworked how API doc is generated
2) tweak top level Makefile.am
3) loading issuer principal as side-effect of loading
an attribute credentials
4) add examples of GENI specific attribute credentials
and principal certificates into the regression testing
5) rename examples to tests
|
-
Property mode set to
100755
|
File size:
639 bytes
|
Rev | Line | |
---|
[be6cb41] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | See README for the semantics. This creates four principals used |
---|
| 5 | by the example. |
---|
| 6 | |
---|
| 7 | """ |
---|
| 8 | import os |
---|
| 9 | import ABAC |
---|
| 10 | |
---|
| 11 | ctxt = ABAC.Context() |
---|
| 12 | |
---|
| 13 | acme=ABAC.ID("Acme", 0) |
---|
| 14 | acme.write_cert_file("Acme_ID.pem") |
---|
| 15 | acme.write_privkey_file("Acme_private.pem") |
---|
| 16 | |
---|
| 17 | coyote=ABAC.ID("Coyote", 0) |
---|
| 18 | coyote.write_cert_file("Coyote_ID.pem") |
---|
| 19 | coyote.write_privkey_file("Coyote_private.pem") |
---|
| 20 | |
---|
| 21 | warnerbros=ABAC.ID("WarnerBros", 0) |
---|
| 22 | warnerbros.write_cert_file("WarnerBros_ID.pem") |
---|
| 23 | warnerbros.write_privkey_file("WarnerBros_private.pem") |
---|
| 24 | |
---|
| 25 | batman=ABAC.ID("Batman", 0) |
---|
| 26 | batman.write_cert_file("Batman_ID.pem") |
---|
| 27 | batman.write_privkey_file("Batman_private.pem") |
---|
| 28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.