source: examples/python_tests/alumni_rt1/setup.py @ eb6693c

mei_rt2mei_rt2_fix_1
Last change on this file since eb6693c was f824a9e, checked in by Mei <mei@…>, 12 years ago

1) add more doc to python_tests

  • Property mode set to 100755
File size: 577 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates principals
5used by the example.
6"""
7
8import os
9import ABAC
10
11ctxt = ABAC.Context()
12
13stateU=ABAC.ID("StateU", 0)
14stateU.id_write_cert("StateU_ID.pem")
15stateU.id_write_privkey("StateU_private.pem")
16
17bob=ABAC.ID("Bob", 0)
18bob.id_write_cert("Bob_ID.pem")
19bob.id_write_privkey("Bob_private.pem")
20
21joe=ABAC.ID("Joe", 0)
22joe.id_write_cert("Joe_ID.pem")
23joe.id_write_privkey("Joe_private.pem")
24
25maryann=ABAC.ID("Maryann", 0)
26maryann.id_write_cert("Maryann_ID.pem")
27maryann.id_write_privkey("Maryann_private.pem")
28
29
Note: See TracBrowser for help on using the repository browser.