source: tests/example_scripts/wiki/id2.py @ bceef20

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