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

mei_rt2mei_rt2_fix_1
Last change on this file since 47d5cf9 was 669b481, checked in by Mei <mei@…>, 12 years ago

1) finish test conversion from creddy-prover to python
2) update the abac.hh/API doc more, adding more intermediate calls

to make abac.hh more uniform

3) found out why a very long attribute rule can not survive in/out of

ietf_attribute_t call (m64 en/decoding - abac_verifier, alice_rt1)

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