source: examples/python_tests/access_rt2/setup.py @ 47d5cf9

mei_rt2mei_rt2_fix_1
Last change on this file since 47d5cf9 was 47d5cf9, checked in by Ted Faber <faber@…>, 12 years ago

Sample documentation

  • Property mode set to 100755
File size: 468 bytes
Line 
1#!/usr/bin/env python
2
3"""
4  to test with python
5
6
7"""
8import os
9import ABAC
10
11# See README for the semantics.  This creates two prinicpals (Alpha and Bob)
12# used by the example.  The ./attrs.py file creates the policy credentials.
13
14ctxt = ABAC.Context()
15
16alphaID=ABAC.ID("Alpha", 0)
17alphaID.id_write_cert("Alpha_ID.pem")
18alphaID.id_write_privkey("Alpha_private.pem")
19
20bobID=ABAC.ID("Bob", 0)
21bobID.id_write_cert("Bob_ID.pem")
22bobID.id_write_privkey("Bob_private.pem")
Note: See TracBrowser for help on using the repository browser.