source: examples/python_tests/basic_attribute/setup.py @ 94d1dae

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 94d1dae was be6cb41, checked in by Mei <mei@…>, 12 years ago

1) forgot to add the new files

  • Property mode set to 100755
File size: 615 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates principals
5using ID and write out the credential file pair, cert/privkey
6"""
7import os
8import ABAC
9
10jackID=ABAC.ID("SuperK", 0)
11jackID.write_cert_file("SuperK_ID.pem")
12jackID.write_privkey_file("SuperK_private.pem")
13
14jackID=ABAC.ID("Jack", 0)
15jackID.write_cert_file("Jack_ID.pem")
16jackID.write_privkey_file("Jack_private.pem")
17
18bobID=ABAC.ID("Bob", 0)
19bobID.write_cert_file("Bob_ID.pem")
20bobID.write_privkey_file("Bob_private.pem")
21
22maryID=ABAC.ID("Mary", 0)
23maryID.write_cert_file("Mary_ID.pem")
24maryID.write_privkey_file("Mary_private.pem")
25
Note: See TracBrowser for help on using the repository browser.