# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_import_helper(): import importlib pkg = __name__.rpartition('.')[0] mname = '.'.join((pkg, '_ABAC')).lstrip('.') try: return importlib.import_module(mname) except ImportError: return importlib.import_module('_ABAC') _ABAC = swig_import_helper() del swig_import_helper elif _swig_python_version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_ABAC', [dirname(__file__)]) except ImportError: import _ABAC return _ABAC if fp is not None: try: _mod = imp.load_module('_ABAC', fp, pathname, description) finally: fp.close() return _mod _ABAC = swig_import_helper() del swig_import_helper else: import _ABAC del _swig_python_version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. try: import builtins as __builtin__ except ImportError: import __builtin__ def _swig_setattr_nondynamic(self, class_type, name, value, static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name, None) if method: return method(self, value) if (not static): if _newclass: object.__setattr__(self, name, value) else: self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self, class_type, name, value): return _swig_setattr_nondynamic(self, class_type, name, value, 0) def _swig_getattr(self, class_type, name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name, None) if method: return method(self) raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except __builtin__.Exception: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except __builtin__.Exception: class _object: pass _newclass = 0 class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _ABAC.delete_SwigPyIterator __del__ = lambda self: None def value(self): return _ABAC.SwigPyIterator_value(self) def incr(self, n=1): return _ABAC.SwigPyIterator_incr(self, n) def decr(self, n=1): return _ABAC.SwigPyIterator_decr(self, n) def distance(self, x): return _ABAC.SwigPyIterator_distance(self, x) def equal(self, x): return _ABAC.SwigPyIterator_equal(self, x) def copy(self): return _ABAC.SwigPyIterator_copy(self) def next(self): return _ABAC.SwigPyIterator_next(self) def __next__(self): return _ABAC.SwigPyIterator___next__(self) def previous(self): return _ABAC.SwigPyIterator_previous(self) def advance(self, n): return _ABAC.SwigPyIterator_advance(self, n) def __eq__(self, x): return _ABAC.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _ABAC.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _ABAC.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _ABAC.SwigPyIterator___isub__(self, n) def __add__(self, n): return _ABAC.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _ABAC.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _ABAC.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) class CredentialVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CredentialVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CredentialVector, name) __repr__ = _swig_repr def iterator(self): return _ABAC.CredentialVector_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): return _ABAC.CredentialVector___nonzero__(self) def __bool__(self): return _ABAC.CredentialVector___bool__(self) def __len__(self): return _ABAC.CredentialVector___len__(self) def __getslice__(self, i, j): return _ABAC.CredentialVector___getslice__(self, i, j) def __setslice__(self, *args): return _ABAC.CredentialVector___setslice__(self, *args) def __delslice__(self, i, j): return _ABAC.CredentialVector___delslice__(self, i, j) def __delitem__(self, *args): return _ABAC.CredentialVector___delitem__(self, *args) def __getitem__(self, *args): return _ABAC.CredentialVector___getitem__(self, *args) def __setitem__(self, *args): return _ABAC.CredentialVector___setitem__(self, *args) def append(self, x): return _ABAC.CredentialVector_append(self, x) def empty(self): return _ABAC.CredentialVector_empty(self) def size(self): return _ABAC.CredentialVector_size(self) def swap(self, v): return _ABAC.CredentialVector_swap(self, v) def begin(self): return _ABAC.CredentialVector_begin(self) def end(self): return _ABAC.CredentialVector_end(self) def rbegin(self): return _ABAC.CredentialVector_rbegin(self) def rend(self): return _ABAC.CredentialVector_rend(self) def clear(self): return _ABAC.CredentialVector_clear(self) def get_allocator(self): return _ABAC.CredentialVector_get_allocator(self) def pop_back(self): return _ABAC.CredentialVector_pop_back(self) def erase(self, *args): return _ABAC.CredentialVector_erase(self, *args) def __init__(self, *args): this = _ABAC.new_CredentialVector(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this def push_back(self, x): return _ABAC.CredentialVector_push_back(self, x) def front(self): return _ABAC.CredentialVector_front(self) def back(self): return _ABAC.CredentialVector_back(self) def assign(self, n, x): return _ABAC.CredentialVector_assign(self, n, x) def resize(self, new_size, x): return _ABAC.CredentialVector_resize(self, new_size, x) def insert(self, *args): return _ABAC.CredentialVector_insert(self, *args) def reserve(self, n): return _ABAC.CredentialVector_reserve(self, n) def capacity(self): return _ABAC.CredentialVector_capacity(self) __swig_destroy__ = _ABAC.delete_CredentialVector __del__ = lambda self: None CredentialVector_swigregister = _ABAC.CredentialVector_swigregister CredentialVector_swigregister(CredentialVector) class abac_chunk_t(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, abac_chunk_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, abac_chunk_t, name) __repr__ = _swig_repr __swig_setmethods__["ptr"] = _ABAC.abac_chunk_t_ptr_set __swig_getmethods__["ptr"] = _ABAC.abac_chunk_t_ptr_get if _newclass: ptr = _swig_property(_ABAC.abac_chunk_t_ptr_get, _ABAC.abac_chunk_t_ptr_set) __swig_setmethods__["len"] = _ABAC.abac_chunk_t_len_set __swig_getmethods__["len"] = _ABAC.abac_chunk_t_len_get if _newclass: len = _swig_property(_ABAC.abac_chunk_t_len_get, _ABAC.abac_chunk_t_len_set) def __init__(self): this = _ABAC.new_abac_chunk_t() try: self.this.append(this) except __builtin__.Exception: self.this = this __swig_destroy__ = _ABAC.delete_abac_chunk_t __del__ = lambda self: None abac_chunk_t_swigregister = _ABAC.abac_chunk_t_swigregister abac_chunk_t_swigregister(abac_chunk_t) def abac_chunk_free(arg1): return _ABAC.abac_chunk_free(arg1) abac_chunk_free = _ABAC.abac_chunk_free def abac_context_new(): return _ABAC.abac_context_new() abac_context_new = _ABAC.abac_context_new def abac_context_dup(ctx): return _ABAC.abac_context_dup(ctx) abac_context_dup = _ABAC.abac_context_dup def abac_context_free(ctx): return _ABAC.abac_context_free(ctx) abac_context_free = _ABAC.abac_context_free def abac_context_load_id_file(ctx, filename): return _ABAC.abac_context_load_id_file(ctx, filename) abac_context_load_id_file = _ABAC.abac_context_load_id_file def abac_context_load_id_chunk(ctx, cert): return _ABAC.abac_context_load_id_chunk(ctx, cert) abac_context_load_id_chunk = _ABAC.abac_context_load_id_chunk def abac_context_load_id_id(ctx, cert): return _ABAC.abac_context_load_id_id(ctx, cert) abac_context_load_id_id = _ABAC.abac_context_load_id_id def abac_context_load_attribute_file(ctx, filename): return _ABAC.abac_context_load_attribute_file(ctx, filename) abac_context_load_attribute_file = _ABAC.abac_context_load_attribute_file def abac_context_load_attribute_chunk(ctx, cert): return _ABAC.abac_context_load_attribute_chunk(ctx, cert) abac_context_load_attribute_chunk = _ABAC.abac_context_load_attribute_chunk def abac_context_load_directory(ctx, path): return _ABAC.abac_context_load_directory(ctx, path) abac_context_load_directory = _ABAC.abac_context_load_directory def abac_context_query(ctx, role, principal, success): return _ABAC.abac_context_query(ctx, role, principal, success) abac_context_query = _ABAC.abac_context_query def abac_context_credentials(ctx): return _ABAC.abac_context_credentials(ctx) abac_context_credentials = _ABAC.abac_context_credentials def abac_context_principals(ctx): return _ABAC.abac_context_principals(ctx) abac_context_principals = _ABAC.abac_context_principals def abac_context_id_credentials_free(arg1): return _ABAC.abac_context_id_credentials_free(arg1) abac_context_id_credentials_free = _ABAC.abac_context_id_credentials_free def abac_context_credentials_free(credentials): return _ABAC.abac_context_credentials_free(credentials) abac_context_credentials_free = _ABAC.abac_context_credentials_free def abac_context_set_nickname(ctxt, key, nick): return _ABAC.abac_context_set_nickname(ctxt, key, nick) abac_context_set_nickname = _ABAC.abac_context_set_nickname def abac_context_expand_key(ctxt, s): return _ABAC.abac_context_expand_key(ctxt, s) abac_context_expand_key = _ABAC.abac_context_expand_key def abac_context_expand_nickname(ctxt, s): return _ABAC.abac_context_expand_nickname(ctxt, s) abac_context_expand_nickname = _ABAC.abac_context_expand_nickname def abac_context_get_keyid_map(ctxt): return _ABAC.abac_context_get_keyid_map(ctxt) abac_context_get_keyid_map = _ABAC.abac_context_get_keyid_map def abac_credential_head(cred): return _ABAC.abac_credential_head(cred) abac_credential_head = _ABAC.abac_credential_head def abac_credential_tail(cred): return _ABAC.abac_credential_tail(cred) abac_credential_tail = _ABAC.abac_credential_tail def abac_credential_attribute_cert(cred): return _ABAC.abac_credential_attribute_cert(cred) abac_credential_attribute_cert = _ABAC.abac_credential_attribute_cert def abac_credential_issuer_cert(cred): return _ABAC.abac_credential_issuer_cert(cred) abac_credential_issuer_cert = _ABAC.abac_credential_issuer_cert def abac_credential_dup(cred): return _ABAC.abac_credential_dup(cred) abac_credential_dup = _ABAC.abac_credential_dup def abac_credential_free(cred): return _ABAC.abac_credential_free(cred) abac_credential_free = _ABAC.abac_credential_free def abac_id_cert_keyid(arg1): return _ABAC.abac_id_cert_keyid(arg1) abac_id_cert_keyid = _ABAC.abac_id_cert_keyid def abac_id_cert_cn(arg1): return _ABAC.abac_id_cert_cn(arg1) abac_id_cert_cn = _ABAC.abac_id_cert_cn def abac_role_principal_new(principal): return _ABAC.abac_role_principal_new(principal) abac_role_principal_new = _ABAC.abac_role_principal_new def abac_role_role_new(principal, abac_role_name): return _ABAC.abac_role_role_new(principal, abac_role_name) abac_role_role_new = _ABAC.abac_role_role_new def abac_role_linking_new(principal, linked_role, abac_role_name): return _ABAC.abac_role_linking_new(principal, linked_role, abac_role_name) abac_role_linking_new = _ABAC.abac_role_linking_new def abac_role_free(role): return _ABAC.abac_role_free(role) abac_role_free = _ABAC.abac_role_free def abac_role_from_string(string): return _ABAC.abac_role_from_string(string) abac_role_from_string = _ABAC.abac_role_from_string def abac_role_dup(role): return _ABAC.abac_role_dup(role) abac_role_dup = _ABAC.abac_role_dup def abac_role_is_principal(role): return _ABAC.abac_role_is_principal(role) abac_role_is_principal = _ABAC.abac_role_is_principal def abac_role_is_role(role): return _ABAC.abac_role_is_role(role) abac_role_is_role = _ABAC.abac_role_is_role def abac_role_is_linking(role): return _ABAC.abac_role_is_linking(role) abac_role_is_linking = _ABAC.abac_role_is_linking def abac_role_is_intersection(role): return _ABAC.abac_role_is_intersection(role) abac_role_is_intersection = _ABAC.abac_role_is_intersection def abac_role_string(role): return _ABAC.abac_role_string(role) abac_role_string = _ABAC.abac_role_string def abac_role_short_string(role, ctxt): return _ABAC.abac_role_short_string(role, ctxt) abac_role_short_string = _ABAC.abac_role_short_string def abac_role_linked_role(role): return _ABAC.abac_role_linked_role(role) abac_role_linked_role = _ABAC.abac_role_linked_role def abac_role_linking_role(role): return _ABAC.abac_role_linking_role(role) abac_role_linking_role = _ABAC.abac_role_linking_role def abac_role_role_name(role): return _ABAC.abac_role_role_name(role) abac_role_role_name = _ABAC.abac_role_role_name def abac_role_principal(role): return _ABAC.abac_role_principal(role) abac_role_principal = _ABAC.abac_role_principal def abac_role_attr_key(head_role, tail_role): return _ABAC.abac_role_attr_key(head_role, tail_role) abac_role_attr_key = _ABAC.abac_role_attr_key def abac_id_from_file(arg1): return _ABAC.abac_id_from_file(arg1) abac_id_from_file = _ABAC.abac_id_from_file def abac_id_from_chunk(chunk): return _ABAC.abac_id_from_chunk(chunk) abac_id_from_chunk = _ABAC.abac_id_from_chunk def abac_id_privkey_from_file(id, filename): return _ABAC.abac_id_privkey_from_file(id, filename) abac_id_privkey_from_file = _ABAC.abac_id_privkey_from_file def abac_id_privkey_from_chunk(id, chunk): return _ABAC.abac_id_privkey_from_chunk(id, chunk) abac_id_privkey_from_chunk = _ABAC.abac_id_privkey_from_chunk def abac_id_generate(ret, cn, validity): return _ABAC.abac_id_generate(ret, cn, validity) abac_id_generate = _ABAC.abac_id_generate def abac_id_generate_with_key(ret, cn, validity, keyfile): return _ABAC.abac_id_generate_with_key(ret, cn, validity, keyfile) abac_id_generate_with_key = _ABAC.abac_id_generate_with_key def abac_id_keyid(id): return _ABAC.abac_id_keyid(id) abac_id_keyid = _ABAC.abac_id_keyid def abac_id_cn(id): return _ABAC.abac_id_cn(id) abac_id_cn = _ABAC.abac_id_cn def abac_id_issuer(id): return _ABAC.abac_id_issuer(id) abac_id_issuer = _ABAC.abac_id_issuer def abac_id_subject(id): return _ABAC.abac_id_subject(id) abac_id_subject = _ABAC.abac_id_subject def abac_id_still_valid(id): return _ABAC.abac_id_still_valid(id) abac_id_still_valid = _ABAC.abac_id_still_valid def abac_id_has_keyid(id, arg2): return _ABAC.abac_id_has_keyid(id, arg2) abac_id_has_keyid = _ABAC.abac_id_has_keyid def abac_id_has_privkey(id): return _ABAC.abac_id_has_privkey(id) abac_id_has_privkey = _ABAC.abac_id_has_privkey def abac_id_validity(id, not_before, not_after): return _ABAC.abac_id_validity(id, not_before, not_after) abac_id_validity = _ABAC.abac_id_validity def abac_id_cert_filename(id): return _ABAC.abac_id_cert_filename(id) abac_id_cert_filename = _ABAC.abac_id_cert_filename def abac_id_write_cert(id, out): return _ABAC.abac_id_write_cert(id, out) abac_id_write_cert = _ABAC.abac_id_write_cert def abac_id_privkey_filename(id): return _ABAC.abac_id_privkey_filename(id) abac_id_privkey_filename = _ABAC.abac_id_privkey_filename def abac_id_write_privkey(id, out): return _ABAC.abac_id_write_privkey(id, out) abac_id_write_privkey = _ABAC.abac_id_write_privkey def abac_id_cert_chunk(id): return _ABAC.abac_id_cert_chunk(id) abac_id_cert_chunk = _ABAC.abac_id_cert_chunk def abac_id_privkey_chunk(id): return _ABAC.abac_id_privkey_chunk(id) abac_id_privkey_chunk = _ABAC.abac_id_privkey_chunk def abac_id_dup(id): return _ABAC.abac_id_dup(id) abac_id_dup = _ABAC.abac_id_dup def abac_id_free(id): return _ABAC.abac_id_free(id) abac_id_free = _ABAC.abac_id_free def abac_attribute_create(attr, issuer, role, validity): return _ABAC.abac_attribute_create(attr, issuer, role, validity) abac_attribute_create = _ABAC.abac_attribute_create def abac_attribute_set_head(attr, string): return _ABAC.abac_attribute_set_head(attr, string) abac_attribute_set_head = _ABAC.abac_attribute_set_head def abac_attribute_get_head(arg1): return _ABAC.abac_attribute_get_head(arg1) abac_attribute_get_head = _ABAC.abac_attribute_get_head def abac_attribute_principal(attr, keyid): return _ABAC.abac_attribute_principal(attr, keyid) abac_attribute_principal = _ABAC.abac_attribute_principal def abac_attribute_role(attr, keyid, role): return _ABAC.abac_attribute_role(attr, keyid, role) abac_attribute_role = _ABAC.abac_attribute_role def abac_attribute_linking_role(attr, keyid, role, linked): return _ABAC.abac_attribute_linking_role(attr, keyid, role, linked) abac_attribute_linking_role = _ABAC.abac_attribute_linking_role def abac_attribute_bake(attr): return _ABAC.abac_attribute_bake(attr) abac_attribute_bake = _ABAC.abac_attribute_bake def abac_attribute_bake_context(attr, ctxt): return _ABAC.abac_attribute_bake_context(attr, ctxt) abac_attribute_bake_context = _ABAC.abac_attribute_bake_context def abac_attribute_baked(attr): return _ABAC.abac_attribute_baked(attr) abac_attribute_baked = _ABAC.abac_attribute_baked def abac_attribute_write(attr, out): return _ABAC.abac_attribute_write(attr, out) abac_attribute_write = _ABAC.abac_attribute_write def abac_attribute_write_file(attr, fname): return _ABAC.abac_attribute_write_file(attr, fname) abac_attribute_write_file = _ABAC.abac_attribute_write_file def abac_attribute_get_ntails(a): return _ABAC.abac_attribute_get_ntails(a) abac_attribute_get_ntails = _ABAC.abac_attribute_get_ntails def abac_attribute_get_tail_n(a, n): return _ABAC.abac_attribute_get_tail_n(a, n) abac_attribute_get_tail_n = _ABAC.abac_attribute_get_tail_n def abac_attribute_cert_chunk(arg1): return _ABAC.abac_attribute_cert_chunk(arg1) abac_attribute_cert_chunk = _ABAC.abac_attribute_cert_chunk def abac_attribute_free(arg1): return _ABAC.abac_attribute_free(arg1) abac_attribute_free = _ABAC.abac_attribute_free def abac_attribute_certs_from_file(arg1, arg2): return _ABAC.abac_attribute_certs_from_file(arg1, arg2) abac_attribute_certs_from_file = _ABAC.abac_attribute_certs_from_file def abac_attribute_certs_from_chunk(arg1, arg2): return _ABAC.abac_attribute_certs_from_chunk(arg1, arg2) abac_attribute_certs_from_chunk = _ABAC.abac_attribute_certs_from_chunk def abac_attribute_role_string(attr): return _ABAC.abac_attribute_role_string(attr) abac_attribute_role_string = _ABAC.abac_attribute_role_string def abac_attribute_issuer_id(ptr): return _ABAC.abac_attribute_issuer_id(ptr) abac_attribute_issuer_id = _ABAC.abac_attribute_issuer_id def abac_attribute_get_output_format(arg1): return _ABAC.abac_attribute_get_output_format(arg1) abac_attribute_get_output_format = _ABAC.abac_attribute_get_output_format def abac_attribute_set_output_format(arg1, arg2): return _ABAC.abac_attribute_set_output_format(arg1, arg2) abac_attribute_set_output_format = _ABAC.abac_attribute_set_output_format def abac_attribute_validity(attr, not_before, not_after): return _ABAC.abac_attribute_validity(attr, not_before, not_after) abac_attribute_validity = _ABAC.abac_attribute_validity def abac_attribute_get_keyid_map(arg1): return _ABAC.abac_attribute_get_keyid_map(arg1) abac_attribute_get_keyid_map = _ABAC.abac_attribute_get_keyid_map def abac_attribute_get_principal(attr): return _ABAC.abac_attribute_get_principal(attr) abac_attribute_get_principal = _ABAC.abac_attribute_get_principal def abac_attribute_still_valid(attr): return _ABAC.abac_attribute_still_valid(attr) abac_attribute_still_valid = _ABAC.abac_attribute_still_valid def abac_keyid_mapping_new(k, v): return _ABAC.abac_keyid_mapping_new(k, v) abac_keyid_mapping_new = _ABAC.abac_keyid_mapping_new def abac_keyid_mapping_free(m): return _ABAC.abac_keyid_mapping_free(m) abac_keyid_mapping_free = _ABAC.abac_keyid_mapping_free def abac_keyid_map_new(): return _ABAC.abac_keyid_map_new() abac_keyid_map_new = _ABAC.abac_keyid_map_new def abac_keyid_map_dup(arg1): return _ABAC.abac_keyid_map_dup(arg1) abac_keyid_map_dup = _ABAC.abac_keyid_map_dup def abac_keyid_map_clone(arg1): return _ABAC.abac_keyid_map_clone(arg1) abac_keyid_map_clone = _ABAC.abac_keyid_map_clone def abac_keyid_map_free(m): return _ABAC.abac_keyid_map_free(m) abac_keyid_map_free = _ABAC.abac_keyid_map_free def abac_keyid_map_key_to_nickname(m, key): return _ABAC.abac_keyid_map_key_to_nickname(m, key) abac_keyid_map_key_to_nickname = _ABAC.abac_keyid_map_key_to_nickname def abac_keyid_map_nickname_to_key(m, nick): return _ABAC.abac_keyid_map_nickname_to_key(m, nick) abac_keyid_map_nickname_to_key = _ABAC.abac_keyid_map_nickname_to_key def abac_keyid_map_remove_keyid(m, key): return _ABAC.abac_keyid_map_remove_keyid(m, key) abac_keyid_map_remove_keyid = _ABAC.abac_keyid_map_remove_keyid def abac_keyid_map_add_nickname(m, key, nick): return _ABAC.abac_keyid_map_add_nickname(m, key, nick) abac_keyid_map_add_nickname = _ABAC.abac_keyid_map_add_nickname def abac_keyid_map_merge(d, s, overwrite): return _ABAC.abac_keyid_map_merge(d, s, overwrite) abac_keyid_map_merge = _ABAC.abac_keyid_map_merge def abac_keyid_map_expand_key(m, s): return _ABAC.abac_keyid_map_expand_key(m, s) abac_keyid_map_expand_key = _ABAC.abac_keyid_map_expand_key def abac_keyid_map_expand_nickname(m, s): return _ABAC.abac_keyid_map_expand_nickname(m, s) abac_keyid_map_expand_nickname = _ABAC.abac_keyid_map_expand_nickname ABAC_RC_SUCCESS = _ABAC.ABAC_RC_SUCCESS ABAC_RC_FAILURE = _ABAC.ABAC_RC_FAILURE ABAC_CERT_SUCCESS = _ABAC.ABAC_CERT_SUCCESS ABAC_CERT_INVALID = _ABAC.ABAC_CERT_INVALID ABAC_CERT_BAD_SIG = _ABAC.ABAC_CERT_BAD_SIG ABAC_CERT_MISSING_ISSUER = _ABAC.ABAC_CERT_MISSING_ISSUER ABAC_CERT_BAD_PRINCIPAL = _ABAC.ABAC_CERT_BAD_PRINCIPAL ABAC_CERT_INVALID_ISSUER = _ABAC.ABAC_CERT_INVALID_ISSUER ABAC_CERT_SIGNER_NOKEY = _ABAC.ABAC_CERT_SIGNER_NOKEY ABAC_SUCCESS = _ABAC.ABAC_SUCCESS ABAC_FAILURE = _ABAC.ABAC_FAILURE ABAC_GENERATE_INVALID_CN = _ABAC.ABAC_GENERATE_INVALID_CN ABAC_GENERATE_INVALID_VALIDITY = _ABAC.ABAC_GENERATE_INVALID_VALIDITY ABAC_ATTRIBUTE_ISSUER_NOKEY = _ABAC.ABAC_ATTRIBUTE_ISSUER_NOKEY ABAC_ATTRIBUTE_INVALID_ROLE = _ABAC.ABAC_ATTRIBUTE_INVALID_ROLE ABAC_ATTRIBUTE_INVALID_VALIDITY = _ABAC.ABAC_ATTRIBUTE_INVALID_VALIDITY ABAC_ATTRIBUTE_INVALID_ISSUER = _ABAC.ABAC_ATTRIBUTE_INVALID_ISSUER class Context(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Context, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Context, name) __repr__ = _swig_repr def __init__(self, *args): this = _ABAC.new_Context(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this __swig_destroy__ = _ABAC.delete_Context __del__ = lambda self: None def load_id_file(self, filename): return _ABAC.Context_load_id_file(self, filename) def load_id_chunk(self, cert): return _ABAC.Context_load_id_chunk(self, cert) def load_id_id(self, id): return _ABAC.Context_load_id_id(self, id) def load_attribute_file(self, filename): return _ABAC.Context_load_attribute_file(self, filename) def load_attribute_chunk(self, cert): return _ABAC.Context_load_attribute_chunk(self, cert) def query(self, role, principal): return _ABAC.Context_query(self, role, principal) def credentials(self): return _ABAC.Context_credentials(self) def load_directory(self, path): return _ABAC.Context_load_directory(self, path) def set_nickname(self, key, nick): return _ABAC.Context_set_nickname(self, key, nick) Context_swigregister = _ABAC.Context_swigregister Context_swigregister(Context) class Role(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Role, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Role, name) __repr__ = _swig_repr def __init__(self, *args): this = _ABAC.new_Role(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this __swig_destroy__ = _ABAC.delete_Role __del__ = lambda self: None def is_principal(self): return _ABAC.Role_is_principal(self) def is_role(self): return _ABAC.Role_is_role(self) def is_linking(self): return _ABAC.Role_is_linking(self) def string(self): return _ABAC.Role_string(self) def short_string(self, c): return _ABAC.Role_short_string(self, c) def linked_role(self): return _ABAC.Role_linked_role(self) def role_name(self): return _ABAC.Role_role_name(self) def principal(self): return _ABAC.Role_principal(self) Role_swigregister = _ABAC.Role_swigregister Role_swigregister(Role) class Credential(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Credential, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Credential, name) __repr__ = _swig_repr def __init__(self, *args): this = _ABAC.new_Credential(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this __swig_destroy__ = _ABAC.delete_Credential __del__ = lambda self: None def head(self): return _ABAC.Credential_head(self) def tail(self): return _ABAC.Credential_tail(self) def attribute_cert(self): return _ABAC.Credential_attribute_cert(self) def issuer_cert(self): return _ABAC.Credential_issuer_cert(self) Credential_swigregister = _ABAC.Credential_swigregister Credential_swigregister(Credential) class ID(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ID, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ID, name) __repr__ = _swig_repr __swig_destroy__ = _ABAC.delete_ID __del__ = lambda self: None def __init__(self, *args): this = _ABAC.new_ID(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this def load_privkey(self, filename): return _ABAC.ID_load_privkey(self, filename) def load_privkey_chunk(self, chunk): return _ABAC.ID_load_privkey_chunk(self, chunk) def has_privkey(self): return _ABAC.ID_has_privkey(self) def keyid(self): return _ABAC.ID_keyid(self) def cn(self): return _ABAC.ID_cn(self) def cert_filename(self): return _ABAC.ID_cert_filename(self) def write_cert(self, out): return _ABAC.ID_write_cert(self, out) def write_cert_file(self, n): return _ABAC.ID_write_cert_file(self, n) def write_cert_name(self, n): return _ABAC.ID_write_cert_name(self, n) def privkey_filename(self): return _ABAC.ID_privkey_filename(self) def write_privkey(self, out): return _ABAC.ID_write_privkey(self, out) def write_privkey_file(self, name): return _ABAC.ID_write_privkey_file(self, name) def write_privkey_name(self, name): return _ABAC.ID_write_privkey_name(self, name) def cert_chunk(self): return _ABAC.ID_cert_chunk(self) def privkey_chunk(self): return _ABAC.ID_privkey_chunk(self) ID_swigregister = _ABAC.ID_swigregister ID_swigregister(ID) def ID_chunk(chunk): val = _ABAC.new_ID_chunk(chunk) return val class Attribute(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Attribute, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Attribute, name) __repr__ = _swig_repr __swig_destroy__ = _ABAC.delete_Attribute __del__ = lambda self: None def __init__(self, *args): this = _ABAC.new_Attribute(*args) try: self.this.append(this) except __builtin__.Exception: self.this = this def principal(self, keyid): return _ABAC.Attribute_principal(self, keyid) def role(self, keyid, role): return _ABAC.Attribute_role(self, keyid, role) def linking_role(self, keyid, role, linked): return _ABAC.Attribute_linking_role(self, keyid, role, linked) def bake(self, *args): return _ABAC.Attribute_bake(self, *args) def baked(self): return _ABAC.Attribute_baked(self) def set_output_format(self, fmt): return _ABAC.Attribute_set_output_format(self, fmt) def get_output_format(self): return _ABAC.Attribute_get_output_format(self) def write(self, out): return _ABAC.Attribute_write(self, out) def write_file(self, name): return _ABAC.Attribute_write_file(self, name) def write_name(self, name): return _ABAC.Attribute_write_name(self, name) def cert_chunk(self): return _ABAC.Attribute_cert_chunk(self) Attribute_swigregister = _ABAC.Attribute_swigregister Attribute_swigregister(Attribute) # This file is compatible with both classic and new-style classes.