abac0-leakabac0-mei
Last change
on this file since 84038c8 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:
325 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | """ |
---|
3 | id3.py |
---|
4 | """ |
---|
5 | |
---|
6 | import os |
---|
7 | import ABAC |
---|
8 | |
---|
9 | id = ABAC.ID("newGuy", 5*365*3600*24) |
---|
10 | |
---|
11 | id.write_cert_file("./newGuy.pem") |
---|
12 | |
---|
13 | id1 = ABAC.ID("./newGuy.pem") |
---|
14 | |
---|
15 | try: |
---|
16 | f = open("./newGuy.pem") |
---|
17 | id2 = ABAC.ID_chunk(f.read()) |
---|
18 | f.close() |
---|
19 | except: |
---|
20 | pass |
---|
21 | |
---|
22 | print "%s %s %s" % (id.keyid(), id1.keyid(), id2.keyid()) |
---|
Note: See
TracBrowser
for help on using the repository browser.