abac0-leakabac0-mei
Last change
on this file since 2be12d2 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:
265 bytes
|
Rev | Line | |
---|
[a02c849] | 1 | #!/usr/bin/env python |
---|
| 2 | """ |
---|
| 3 | attr1.py |
---|
| 4 | """ |
---|
| 5 | import os |
---|
| 6 | import ABAC |
---|
| 7 | |
---|
| 8 | a = ABAC.ID("A", 24 * 3600 * 365 * 20) |
---|
| 9 | b = ABAC.ID("B", 24 * 3600 * 365 * 20) |
---|
| 10 | |
---|
| 11 | attr = ABAC.Attribute(a, "admin", 24 * 3600 * 365 * 20) |
---|
| 12 | attr.principal(b.keyid()) |
---|
| 13 | attr.bake() |
---|
| 14 | |
---|
| 15 | attr.write_file("attr.xml") |
---|
| 16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.