source: examples/python_tests/access_ctxt_rt2/setup.py @ 2e9455f

mei_rt2
Last change on this file since 2e9455f was 2e9455f, checked in by Mei <mei@…>, 12 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

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