source: tests/example_scripts/wiki/attr2.py @ ec550f7

abac0-leakabac0-meimei-idtvf-new-xml
Last change on this file since ec550f7 was ec550f7, checked in by Mei <mei@…>, 11 years ago

1) reworked how API doc is generated
2) tweak top level Makefile.am
3) loading issuer principal as side-effect of loading

an attribute credentials

4) add examples of GENI specific attribute credentials

and principal certificates into the regression testing

5) rename examples to tests

  • Property mode set to 100755
File size: 273 bytes
Line 
1#!/usr/bin/env python
2"""
3attr1.py
4"""
5import os
6import ABAC
7
8a = ABAC.ID("A", 24 * 3600 * 365 * 20)
9
10attr = ABAC.Attribute(a, "friendly_admin", 24 * 3600 * 365 * 20)
11attr.role(a.keyid(), "friendly")
12attr.role(a.keyid(), "admin")
13attr.bake()
14
15attr.write_file("attr.xml")
16
17
Note: See TracBrowser for help on using the repository browser.