source: examples/python_tests/balltime_rt2/setup.py @ 43478b1

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

1) add more doc to python_tests

  • Property mode set to 100755
File size: 486 bytes
RevLine 
[7211a95]1#!/usr/bin/env python
2
3"""
[f824a9e]4See README for the semantics.  This creates principals
5used by the example.
[7211a95]6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12leagueID=ABAC.ID("League", 0)
13leagueID.id_write_cert("League_ID.pem")
14leagueID.id_write_privkey("League_private.pem")
15
16johnID=ABAC.ID("John", 0)
17johnID.id_write_cert("John_ID.pem")
18johnID.id_write_privkey("John_private.pem")
19
20markID=ABAC.ID("Mark", 0)
21markID.id_write_cert("Mark_ID.pem")
22markID.id_write_privkey("Mark_private.pem")
23
Note: See TracBrowser for help on using the repository browser.