[80a0f3f] | 1 | # This file was automatically generated by SWIG (http://www.swig.org). |
---|
| 2 | # Version 3.0.10 |
---|
| 3 | # |
---|
| 4 | # Do not make changes to this file unless you know what you are doing--modify |
---|
| 5 | # the SWIG interface file instead. |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | from sys import version_info as _swig_python_version_info |
---|
| 12 | if _swig_python_version_info >= (2, 7, 0): |
---|
| 13 | def swig_import_helper(): |
---|
| 14 | import importlib |
---|
| 15 | pkg = __name__.rpartition('.')[0] |
---|
| 16 | mname = '.'.join((pkg, '_ABAC')).lstrip('.') |
---|
| 17 | try: |
---|
| 18 | return importlib.import_module(mname) |
---|
| 19 | except ImportError: |
---|
| 20 | return importlib.import_module('_ABAC') |
---|
| 21 | _ABAC = swig_import_helper() |
---|
| 22 | del swig_import_helper |
---|
| 23 | elif _swig_python_version_info >= (2, 6, 0): |
---|
| 24 | def swig_import_helper(): |
---|
| 25 | from os.path import dirname |
---|
| 26 | import imp |
---|
| 27 | fp = None |
---|
| 28 | try: |
---|
| 29 | fp, pathname, description = imp.find_module('_ABAC', [dirname(__file__)]) |
---|
| 30 | except ImportError: |
---|
| 31 | import _ABAC |
---|
| 32 | return _ABAC |
---|
| 33 | if fp is not None: |
---|
| 34 | try: |
---|
| 35 | _mod = imp.load_module('_ABAC', fp, pathname, description) |
---|
| 36 | finally: |
---|
| 37 | fp.close() |
---|
| 38 | return _mod |
---|
| 39 | _ABAC = swig_import_helper() |
---|
| 40 | del swig_import_helper |
---|
| 41 | else: |
---|
| 42 | import _ABAC |
---|
| 43 | del _swig_python_version_info |
---|
| 44 | try: |
---|
| 45 | _swig_property = property |
---|
| 46 | except NameError: |
---|
| 47 | pass # Python < 2.2 doesn't have 'property'. |
---|
| 48 | |
---|
| 49 | try: |
---|
| 50 | import builtins as __builtin__ |
---|
| 51 | except ImportError: |
---|
| 52 | import __builtin__ |
---|
| 53 | |
---|
| 54 | def _swig_setattr_nondynamic(self, class_type, name, value, static=1): |
---|
| 55 | if (name == "thisown"): |
---|
| 56 | return self.this.own(value) |
---|
| 57 | if (name == "this"): |
---|
| 58 | if type(value).__name__ == 'SwigPyObject': |
---|
| 59 | self.__dict__[name] = value |
---|
| 60 | return |
---|
| 61 | method = class_type.__swig_setmethods__.get(name, None) |
---|
| 62 | if method: |
---|
| 63 | return method(self, value) |
---|
| 64 | if (not static): |
---|
| 65 | if _newclass: |
---|
| 66 | object.__setattr__(self, name, value) |
---|
| 67 | else: |
---|
| 68 | self.__dict__[name] = value |
---|
| 69 | else: |
---|
| 70 | raise AttributeError("You cannot add attributes to %s" % self) |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | def _swig_setattr(self, class_type, name, value): |
---|
| 74 | return _swig_setattr_nondynamic(self, class_type, name, value, 0) |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | def _swig_getattr(self, class_type, name): |
---|
| 78 | if (name == "thisown"): |
---|
| 79 | return self.this.own() |
---|
| 80 | method = class_type.__swig_getmethods__.get(name, None) |
---|
| 81 | if method: |
---|
| 82 | return method(self) |
---|
| 83 | raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | def _swig_repr(self): |
---|
| 87 | try: |
---|
| 88 | strthis = "proxy of " + self.this.__repr__() |
---|
| 89 | except __builtin__.Exception: |
---|
| 90 | strthis = "" |
---|
| 91 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) |
---|
| 92 | |
---|
| 93 | try: |
---|
| 94 | _object = object |
---|
| 95 | _newclass = 1 |
---|
| 96 | except __builtin__.Exception: |
---|
| 97 | class _object: |
---|
| 98 | pass |
---|
| 99 | _newclass = 0 |
---|
| 100 | |
---|
| 101 | class SwigPyIterator(_object): |
---|
| 102 | __swig_setmethods__ = {} |
---|
| 103 | __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) |
---|
| 104 | __swig_getmethods__ = {} |
---|
| 105 | __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) |
---|
| 106 | |
---|
| 107 | def __init__(self, *args, **kwargs): |
---|
| 108 | raise AttributeError("No constructor defined - class is abstract") |
---|
| 109 | __repr__ = _swig_repr |
---|
| 110 | __swig_destroy__ = _ABAC.delete_SwigPyIterator |
---|
| 111 | __del__ = lambda self: None |
---|
| 112 | |
---|
| 113 | def value(self): |
---|
| 114 | return _ABAC.SwigPyIterator_value(self) |
---|
| 115 | |
---|
| 116 | def incr(self, n=1): |
---|
| 117 | return _ABAC.SwigPyIterator_incr(self, n) |
---|
| 118 | |
---|
| 119 | def decr(self, n=1): |
---|
| 120 | return _ABAC.SwigPyIterator_decr(self, n) |
---|
| 121 | |
---|
| 122 | def distance(self, x): |
---|
| 123 | return _ABAC.SwigPyIterator_distance(self, x) |
---|
| 124 | |
---|
| 125 | def equal(self, x): |
---|
| 126 | return _ABAC.SwigPyIterator_equal(self, x) |
---|
| 127 | |
---|
| 128 | def copy(self): |
---|
| 129 | return _ABAC.SwigPyIterator_copy(self) |
---|
| 130 | |
---|
| 131 | def next(self): |
---|
| 132 | return _ABAC.SwigPyIterator_next(self) |
---|
| 133 | |
---|
| 134 | def __next__(self): |
---|
| 135 | return _ABAC.SwigPyIterator___next__(self) |
---|
| 136 | |
---|
| 137 | def previous(self): |
---|
| 138 | return _ABAC.SwigPyIterator_previous(self) |
---|
| 139 | |
---|
| 140 | def advance(self, n): |
---|
| 141 | return _ABAC.SwigPyIterator_advance(self, n) |
---|
| 142 | |
---|
| 143 | def __eq__(self, x): |
---|
| 144 | return _ABAC.SwigPyIterator___eq__(self, x) |
---|
| 145 | |
---|
| 146 | def __ne__(self, x): |
---|
| 147 | return _ABAC.SwigPyIterator___ne__(self, x) |
---|
| 148 | |
---|
| 149 | def __iadd__(self, n): |
---|
| 150 | return _ABAC.SwigPyIterator___iadd__(self, n) |
---|
| 151 | |
---|
| 152 | def __isub__(self, n): |
---|
| 153 | return _ABAC.SwigPyIterator___isub__(self, n) |
---|
| 154 | |
---|
| 155 | def __add__(self, n): |
---|
| 156 | return _ABAC.SwigPyIterator___add__(self, n) |
---|
| 157 | |
---|
| 158 | def __sub__(self, *args): |
---|
| 159 | return _ABAC.SwigPyIterator___sub__(self, *args) |
---|
| 160 | def __iter__(self): |
---|
| 161 | return self |
---|
| 162 | SwigPyIterator_swigregister = _ABAC.SwigPyIterator_swigregister |
---|
| 163 | SwigPyIterator_swigregister(SwigPyIterator) |
---|
| 164 | |
---|
| 165 | class CredentialVector(_object): |
---|
| 166 | __swig_setmethods__ = {} |
---|
| 167 | __setattr__ = lambda self, name, value: _swig_setattr(self, CredentialVector, name, value) |
---|
| 168 | __swig_getmethods__ = {} |
---|
| 169 | __getattr__ = lambda self, name: _swig_getattr(self, CredentialVector, name) |
---|
| 170 | __repr__ = _swig_repr |
---|
| 171 | |
---|
| 172 | def iterator(self): |
---|
| 173 | return _ABAC.CredentialVector_iterator(self) |
---|
| 174 | def __iter__(self): |
---|
| 175 | return self.iterator() |
---|
| 176 | |
---|
| 177 | def __nonzero__(self): |
---|
| 178 | return _ABAC.CredentialVector___nonzero__(self) |
---|
| 179 | |
---|
| 180 | def __bool__(self): |
---|
| 181 | return _ABAC.CredentialVector___bool__(self) |
---|
| 182 | |
---|
| 183 | def __len__(self): |
---|
| 184 | return _ABAC.CredentialVector___len__(self) |
---|
| 185 | |
---|
| 186 | def __getslice__(self, i, j): |
---|
| 187 | return _ABAC.CredentialVector___getslice__(self, i, j) |
---|
| 188 | |
---|
| 189 | def __setslice__(self, *args): |
---|
| 190 | return _ABAC.CredentialVector___setslice__(self, *args) |
---|
| 191 | |
---|
| 192 | def __delslice__(self, i, j): |
---|
| 193 | return _ABAC.CredentialVector___delslice__(self, i, j) |
---|
| 194 | |
---|
| 195 | def __delitem__(self, *args): |
---|
| 196 | return _ABAC.CredentialVector___delitem__(self, *args) |
---|
| 197 | |
---|
| 198 | def __getitem__(self, *args): |
---|
| 199 | return _ABAC.CredentialVector___getitem__(self, *args) |
---|
| 200 | |
---|
| 201 | def __setitem__(self, *args): |
---|
| 202 | return _ABAC.CredentialVector___setitem__(self, *args) |
---|
| 203 | |
---|
| 204 | def append(self, x): |
---|
| 205 | return _ABAC.CredentialVector_append(self, x) |
---|
| 206 | |
---|
| 207 | def empty(self): |
---|
| 208 | return _ABAC.CredentialVector_empty(self) |
---|
| 209 | |
---|
| 210 | def size(self): |
---|
| 211 | return _ABAC.CredentialVector_size(self) |
---|
| 212 | |
---|
| 213 | def swap(self, v): |
---|
| 214 | return _ABAC.CredentialVector_swap(self, v) |
---|
| 215 | |
---|
| 216 | def begin(self): |
---|
| 217 | return _ABAC.CredentialVector_begin(self) |
---|
| 218 | |
---|
| 219 | def end(self): |
---|
| 220 | return _ABAC.CredentialVector_end(self) |
---|
| 221 | |
---|
| 222 | def rbegin(self): |
---|
| 223 | return _ABAC.CredentialVector_rbegin(self) |
---|
| 224 | |
---|
| 225 | def rend(self): |
---|
| 226 | return _ABAC.CredentialVector_rend(self) |
---|
| 227 | |
---|
| 228 | def clear(self): |
---|
| 229 | return _ABAC.CredentialVector_clear(self) |
---|
| 230 | |
---|
| 231 | def get_allocator(self): |
---|
| 232 | return _ABAC.CredentialVector_get_allocator(self) |
---|
| 233 | |
---|
| 234 | def pop_back(self): |
---|
| 235 | return _ABAC.CredentialVector_pop_back(self) |
---|
| 236 | |
---|
| 237 | def erase(self, *args): |
---|
| 238 | return _ABAC.CredentialVector_erase(self, *args) |
---|
| 239 | |
---|
| 240 | def __init__(self, *args): |
---|
| 241 | this = _ABAC.new_CredentialVector(*args) |
---|
| 242 | try: |
---|
| 243 | self.this.append(this) |
---|
| 244 | except __builtin__.Exception: |
---|
| 245 | self.this = this |
---|
| 246 | |
---|
| 247 | def push_back(self, x): |
---|
| 248 | return _ABAC.CredentialVector_push_back(self, x) |
---|
| 249 | |
---|
| 250 | def front(self): |
---|
| 251 | return _ABAC.CredentialVector_front(self) |
---|
| 252 | |
---|
| 253 | def back(self): |
---|
| 254 | return _ABAC.CredentialVector_back(self) |
---|
| 255 | |
---|
| 256 | def assign(self, n, x): |
---|
| 257 | return _ABAC.CredentialVector_assign(self, n, x) |
---|
| 258 | |
---|
| 259 | def resize(self, new_size, x): |
---|
| 260 | return _ABAC.CredentialVector_resize(self, new_size, x) |
---|
| 261 | |
---|
| 262 | def insert(self, *args): |
---|
| 263 | return _ABAC.CredentialVector_insert(self, *args) |
---|
| 264 | |
---|
| 265 | def reserve(self, n): |
---|
| 266 | return _ABAC.CredentialVector_reserve(self, n) |
---|
| 267 | |
---|
| 268 | def capacity(self): |
---|
| 269 | return _ABAC.CredentialVector_capacity(self) |
---|
| 270 | __swig_destroy__ = _ABAC.delete_CredentialVector |
---|
| 271 | __del__ = lambda self: None |
---|
| 272 | CredentialVector_swigregister = _ABAC.CredentialVector_swigregister |
---|
| 273 | CredentialVector_swigregister(CredentialVector) |
---|
| 274 | |
---|
| 275 | class abac_chunk_t(_object): |
---|
| 276 | __swig_setmethods__ = {} |
---|
| 277 | __setattr__ = lambda self, name, value: _swig_setattr(self, abac_chunk_t, name, value) |
---|
| 278 | __swig_getmethods__ = {} |
---|
| 279 | __getattr__ = lambda self, name: _swig_getattr(self, abac_chunk_t, name) |
---|
| 280 | __repr__ = _swig_repr |
---|
| 281 | __swig_setmethods__["ptr"] = _ABAC.abac_chunk_t_ptr_set |
---|
| 282 | __swig_getmethods__["ptr"] = _ABAC.abac_chunk_t_ptr_get |
---|
| 283 | if _newclass: |
---|
| 284 | ptr = _swig_property(_ABAC.abac_chunk_t_ptr_get, _ABAC.abac_chunk_t_ptr_set) |
---|
| 285 | __swig_setmethods__["len"] = _ABAC.abac_chunk_t_len_set |
---|
| 286 | __swig_getmethods__["len"] = _ABAC.abac_chunk_t_len_get |
---|
| 287 | if _newclass: |
---|
| 288 | len = _swig_property(_ABAC.abac_chunk_t_len_get, _ABAC.abac_chunk_t_len_set) |
---|
| 289 | |
---|
| 290 | def __init__(self): |
---|
| 291 | this = _ABAC.new_abac_chunk_t() |
---|
| 292 | try: |
---|
| 293 | self.this.append(this) |
---|
| 294 | except __builtin__.Exception: |
---|
| 295 | self.this = this |
---|
| 296 | __swig_destroy__ = _ABAC.delete_abac_chunk_t |
---|
| 297 | __del__ = lambda self: None |
---|
| 298 | abac_chunk_t_swigregister = _ABAC.abac_chunk_t_swigregister |
---|
| 299 | abac_chunk_t_swigregister(abac_chunk_t) |
---|
| 300 | |
---|
| 301 | |
---|
| 302 | def abac_chunk_free(arg1): |
---|
| 303 | return _ABAC.abac_chunk_free(arg1) |
---|
| 304 | abac_chunk_free = _ABAC.abac_chunk_free |
---|
| 305 | |
---|
| 306 | def abac_context_new(): |
---|
| 307 | return _ABAC.abac_context_new() |
---|
| 308 | abac_context_new = _ABAC.abac_context_new |
---|
| 309 | |
---|
| 310 | def abac_context_dup(ctx): |
---|
| 311 | return _ABAC.abac_context_dup(ctx) |
---|
| 312 | abac_context_dup = _ABAC.abac_context_dup |
---|
| 313 | |
---|
| 314 | def abac_context_free(ctx): |
---|
| 315 | return _ABAC.abac_context_free(ctx) |
---|
| 316 | abac_context_free = _ABAC.abac_context_free |
---|
| 317 | |
---|
| 318 | def abac_context_load_id_file(ctx, filename): |
---|
| 319 | return _ABAC.abac_context_load_id_file(ctx, filename) |
---|
| 320 | abac_context_load_id_file = _ABAC.abac_context_load_id_file |
---|
| 321 | |
---|
| 322 | def abac_context_load_id_chunk(ctx, cert): |
---|
| 323 | return _ABAC.abac_context_load_id_chunk(ctx, cert) |
---|
| 324 | abac_context_load_id_chunk = _ABAC.abac_context_load_id_chunk |
---|
| 325 | |
---|
| 326 | def abac_context_load_id_id(ctx, cert): |
---|
| 327 | return _ABAC.abac_context_load_id_id(ctx, cert) |
---|
| 328 | abac_context_load_id_id = _ABAC.abac_context_load_id_id |
---|
| 329 | |
---|
| 330 | def abac_context_load_attribute_file(ctx, filename): |
---|
| 331 | return _ABAC.abac_context_load_attribute_file(ctx, filename) |
---|
| 332 | abac_context_load_attribute_file = _ABAC.abac_context_load_attribute_file |
---|
| 333 | |
---|
| 334 | def abac_context_load_attribute_chunk(ctx, cert): |
---|
| 335 | return _ABAC.abac_context_load_attribute_chunk(ctx, cert) |
---|
| 336 | abac_context_load_attribute_chunk = _ABAC.abac_context_load_attribute_chunk |
---|
| 337 | |
---|
| 338 | def abac_context_load_directory(ctx, path): |
---|
| 339 | return _ABAC.abac_context_load_directory(ctx, path) |
---|
| 340 | abac_context_load_directory = _ABAC.abac_context_load_directory |
---|
| 341 | |
---|
| 342 | def abac_context_query(ctx, role, principal, success): |
---|
| 343 | return _ABAC.abac_context_query(ctx, role, principal, success) |
---|
| 344 | abac_context_query = _ABAC.abac_context_query |
---|
| 345 | |
---|
| 346 | def abac_context_credentials(ctx): |
---|
| 347 | return _ABAC.abac_context_credentials(ctx) |
---|
| 348 | abac_context_credentials = _ABAC.abac_context_credentials |
---|
| 349 | |
---|
| 350 | def abac_context_principals(ctx): |
---|
| 351 | return _ABAC.abac_context_principals(ctx) |
---|
| 352 | abac_context_principals = _ABAC.abac_context_principals |
---|
| 353 | |
---|
| 354 | def abac_context_id_credentials_free(arg1): |
---|
| 355 | return _ABAC.abac_context_id_credentials_free(arg1) |
---|
| 356 | abac_context_id_credentials_free = _ABAC.abac_context_id_credentials_free |
---|
| 357 | |
---|
| 358 | def abac_context_credentials_free(credentials): |
---|
| 359 | return _ABAC.abac_context_credentials_free(credentials) |
---|
| 360 | abac_context_credentials_free = _ABAC.abac_context_credentials_free |
---|
| 361 | |
---|
| 362 | def abac_context_set_nickname(ctxt, key, nick): |
---|
| 363 | return _ABAC.abac_context_set_nickname(ctxt, key, nick) |
---|
| 364 | abac_context_set_nickname = _ABAC.abac_context_set_nickname |
---|
| 365 | |
---|
| 366 | def abac_context_expand_key(ctxt, s): |
---|
| 367 | return _ABAC.abac_context_expand_key(ctxt, s) |
---|
| 368 | abac_context_expand_key = _ABAC.abac_context_expand_key |
---|
| 369 | |
---|
| 370 | def abac_context_expand_nickname(ctxt, s): |
---|
| 371 | return _ABAC.abac_context_expand_nickname(ctxt, s) |
---|
| 372 | abac_context_expand_nickname = _ABAC.abac_context_expand_nickname |
---|
| 373 | |
---|
| 374 | def abac_context_get_keyid_map(ctxt): |
---|
| 375 | return _ABAC.abac_context_get_keyid_map(ctxt) |
---|
| 376 | abac_context_get_keyid_map = _ABAC.abac_context_get_keyid_map |
---|
| 377 | |
---|
| 378 | def abac_credential_head(cred): |
---|
| 379 | return _ABAC.abac_credential_head(cred) |
---|
| 380 | abac_credential_head = _ABAC.abac_credential_head |
---|
| 381 | |
---|
| 382 | def abac_credential_tail(cred): |
---|
| 383 | return _ABAC.abac_credential_tail(cred) |
---|
| 384 | abac_credential_tail = _ABAC.abac_credential_tail |
---|
| 385 | |
---|
| 386 | def abac_credential_attribute_cert(cred): |
---|
| 387 | return _ABAC.abac_credential_attribute_cert(cred) |
---|
| 388 | abac_credential_attribute_cert = _ABAC.abac_credential_attribute_cert |
---|
| 389 | |
---|
| 390 | def abac_credential_issuer_cert(cred): |
---|
| 391 | return _ABAC.abac_credential_issuer_cert(cred) |
---|
| 392 | abac_credential_issuer_cert = _ABAC.abac_credential_issuer_cert |
---|
| 393 | |
---|
| 394 | def abac_credential_dup(cred): |
---|
| 395 | return _ABAC.abac_credential_dup(cred) |
---|
| 396 | abac_credential_dup = _ABAC.abac_credential_dup |
---|
| 397 | |
---|
| 398 | def abac_credential_free(cred): |
---|
| 399 | return _ABAC.abac_credential_free(cred) |
---|
| 400 | abac_credential_free = _ABAC.abac_credential_free |
---|
| 401 | |
---|
| 402 | def abac_id_cert_keyid(arg1): |
---|
| 403 | return _ABAC.abac_id_cert_keyid(arg1) |
---|
| 404 | abac_id_cert_keyid = _ABAC.abac_id_cert_keyid |
---|
| 405 | |
---|
| 406 | def abac_id_cert_cn(arg1): |
---|
| 407 | return _ABAC.abac_id_cert_cn(arg1) |
---|
| 408 | abac_id_cert_cn = _ABAC.abac_id_cert_cn |
---|
| 409 | |
---|
| 410 | def abac_role_principal_new(principal): |
---|
| 411 | return _ABAC.abac_role_principal_new(principal) |
---|
| 412 | abac_role_principal_new = _ABAC.abac_role_principal_new |
---|
| 413 | |
---|
| 414 | def abac_role_role_new(principal, abac_role_name): |
---|
| 415 | return _ABAC.abac_role_role_new(principal, abac_role_name) |
---|
| 416 | abac_role_role_new = _ABAC.abac_role_role_new |
---|
| 417 | |
---|
| 418 | def abac_role_linking_new(principal, linked_role, abac_role_name): |
---|
| 419 | return _ABAC.abac_role_linking_new(principal, linked_role, abac_role_name) |
---|
| 420 | abac_role_linking_new = _ABAC.abac_role_linking_new |
---|
| 421 | |
---|
| 422 | def abac_role_free(role): |
---|
| 423 | return _ABAC.abac_role_free(role) |
---|
| 424 | abac_role_free = _ABAC.abac_role_free |
---|
| 425 | |
---|
| 426 | def abac_role_from_string(string): |
---|
| 427 | return _ABAC.abac_role_from_string(string) |
---|
| 428 | abac_role_from_string = _ABAC.abac_role_from_string |
---|
| 429 | |
---|
| 430 | def abac_role_dup(role): |
---|
| 431 | return _ABAC.abac_role_dup(role) |
---|
| 432 | abac_role_dup = _ABAC.abac_role_dup |
---|
| 433 | |
---|
| 434 | def abac_role_is_principal(role): |
---|
| 435 | return _ABAC.abac_role_is_principal(role) |
---|
| 436 | abac_role_is_principal = _ABAC.abac_role_is_principal |
---|
| 437 | |
---|
| 438 | def abac_role_is_role(role): |
---|
| 439 | return _ABAC.abac_role_is_role(role) |
---|
| 440 | abac_role_is_role = _ABAC.abac_role_is_role |
---|
| 441 | |
---|
| 442 | def abac_role_is_linking(role): |
---|
| 443 | return _ABAC.abac_role_is_linking(role) |
---|
| 444 | abac_role_is_linking = _ABAC.abac_role_is_linking |
---|
| 445 | |
---|
| 446 | def abac_role_is_intersection(role): |
---|
| 447 | return _ABAC.abac_role_is_intersection(role) |
---|
| 448 | abac_role_is_intersection = _ABAC.abac_role_is_intersection |
---|
| 449 | |
---|
| 450 | def abac_role_string(role): |
---|
| 451 | return _ABAC.abac_role_string(role) |
---|
| 452 | abac_role_string = _ABAC.abac_role_string |
---|
| 453 | |
---|
| 454 | def abac_role_short_string(role, ctxt): |
---|
| 455 | return _ABAC.abac_role_short_string(role, ctxt) |
---|
| 456 | abac_role_short_string = _ABAC.abac_role_short_string |
---|
| 457 | |
---|
| 458 | def abac_role_linked_role(role): |
---|
| 459 | return _ABAC.abac_role_linked_role(role) |
---|
| 460 | abac_role_linked_role = _ABAC.abac_role_linked_role |
---|
| 461 | |
---|
| 462 | def abac_role_linking_role(role): |
---|
| 463 | return _ABAC.abac_role_linking_role(role) |
---|
| 464 | abac_role_linking_role = _ABAC.abac_role_linking_role |
---|
| 465 | |
---|
| 466 | def abac_role_role_name(role): |
---|
| 467 | return _ABAC.abac_role_role_name(role) |
---|
| 468 | abac_role_role_name = _ABAC.abac_role_role_name |
---|
| 469 | |
---|
| 470 | def abac_role_principal(role): |
---|
| 471 | return _ABAC.abac_role_principal(role) |
---|
| 472 | abac_role_principal = _ABAC.abac_role_principal |
---|
| 473 | |
---|
| 474 | def abac_role_attr_key(head_role, tail_role): |
---|
| 475 | return _ABAC.abac_role_attr_key(head_role, tail_role) |
---|
| 476 | abac_role_attr_key = _ABAC.abac_role_attr_key |
---|
| 477 | |
---|
| 478 | def abac_id_from_file(arg1): |
---|
| 479 | return _ABAC.abac_id_from_file(arg1) |
---|
| 480 | abac_id_from_file = _ABAC.abac_id_from_file |
---|
| 481 | |
---|
| 482 | def abac_id_from_chunk(chunk): |
---|
| 483 | return _ABAC.abac_id_from_chunk(chunk) |
---|
| 484 | abac_id_from_chunk = _ABAC.abac_id_from_chunk |
---|
| 485 | |
---|
| 486 | def abac_id_privkey_from_file(id, filename): |
---|
| 487 | return _ABAC.abac_id_privkey_from_file(id, filename) |
---|
| 488 | abac_id_privkey_from_file = _ABAC.abac_id_privkey_from_file |
---|
| 489 | |
---|
| 490 | def abac_id_privkey_from_chunk(id, chunk): |
---|
| 491 | return _ABAC.abac_id_privkey_from_chunk(id, chunk) |
---|
| 492 | abac_id_privkey_from_chunk = _ABAC.abac_id_privkey_from_chunk |
---|
| 493 | |
---|
| 494 | def abac_id_generate(ret, cn, validity): |
---|
| 495 | return _ABAC.abac_id_generate(ret, cn, validity) |
---|
| 496 | abac_id_generate = _ABAC.abac_id_generate |
---|
| 497 | |
---|
| 498 | def abac_id_generate_with_key(ret, cn, validity, keyfile): |
---|
| 499 | return _ABAC.abac_id_generate_with_key(ret, cn, validity, keyfile) |
---|
| 500 | abac_id_generate_with_key = _ABAC.abac_id_generate_with_key |
---|
| 501 | |
---|
| 502 | def abac_id_keyid(id): |
---|
| 503 | return _ABAC.abac_id_keyid(id) |
---|
| 504 | abac_id_keyid = _ABAC.abac_id_keyid |
---|
| 505 | |
---|
| 506 | def abac_id_cn(id): |
---|
| 507 | return _ABAC.abac_id_cn(id) |
---|
| 508 | abac_id_cn = _ABAC.abac_id_cn |
---|
| 509 | |
---|
| 510 | def abac_id_issuer(id): |
---|
| 511 | return _ABAC.abac_id_issuer(id) |
---|
| 512 | abac_id_issuer = _ABAC.abac_id_issuer |
---|
| 513 | |
---|
| 514 | def abac_id_subject(id): |
---|
| 515 | return _ABAC.abac_id_subject(id) |
---|
| 516 | abac_id_subject = _ABAC.abac_id_subject |
---|
| 517 | |
---|
| 518 | def abac_id_still_valid(id): |
---|
| 519 | return _ABAC.abac_id_still_valid(id) |
---|
| 520 | abac_id_still_valid = _ABAC.abac_id_still_valid |
---|
| 521 | |
---|
| 522 | def abac_id_has_keyid(id, arg2): |
---|
| 523 | return _ABAC.abac_id_has_keyid(id, arg2) |
---|
| 524 | abac_id_has_keyid = _ABAC.abac_id_has_keyid |
---|
| 525 | |
---|
| 526 | def abac_id_has_privkey(id): |
---|
| 527 | return _ABAC.abac_id_has_privkey(id) |
---|
| 528 | abac_id_has_privkey = _ABAC.abac_id_has_privkey |
---|
| 529 | |
---|
| 530 | def abac_id_validity(id, not_before, not_after): |
---|
| 531 | return _ABAC.abac_id_validity(id, not_before, not_after) |
---|
| 532 | abac_id_validity = _ABAC.abac_id_validity |
---|
| 533 | |
---|
| 534 | def abac_id_cert_filename(id): |
---|
| 535 | return _ABAC.abac_id_cert_filename(id) |
---|
| 536 | abac_id_cert_filename = _ABAC.abac_id_cert_filename |
---|
| 537 | |
---|
| 538 | def abac_id_write_cert(id, out): |
---|
| 539 | return _ABAC.abac_id_write_cert(id, out) |
---|
| 540 | abac_id_write_cert = _ABAC.abac_id_write_cert |
---|
| 541 | |
---|
| 542 | def abac_id_privkey_filename(id): |
---|
| 543 | return _ABAC.abac_id_privkey_filename(id) |
---|
| 544 | abac_id_privkey_filename = _ABAC.abac_id_privkey_filename |
---|
| 545 | |
---|
| 546 | def abac_id_write_privkey(id, out): |
---|
| 547 | return _ABAC.abac_id_write_privkey(id, out) |
---|
| 548 | abac_id_write_privkey = _ABAC.abac_id_write_privkey |
---|
| 549 | |
---|
| 550 | def abac_id_cert_chunk(id): |
---|
| 551 | return _ABAC.abac_id_cert_chunk(id) |
---|
| 552 | abac_id_cert_chunk = _ABAC.abac_id_cert_chunk |
---|
| 553 | |
---|
| 554 | def abac_id_privkey_chunk(id): |
---|
| 555 | return _ABAC.abac_id_privkey_chunk(id) |
---|
| 556 | abac_id_privkey_chunk = _ABAC.abac_id_privkey_chunk |
---|
| 557 | |
---|
| 558 | def abac_id_dup(id): |
---|
| 559 | return _ABAC.abac_id_dup(id) |
---|
| 560 | abac_id_dup = _ABAC.abac_id_dup |
---|
| 561 | |
---|
| 562 | def abac_id_free(id): |
---|
| 563 | return _ABAC.abac_id_free(id) |
---|
| 564 | abac_id_free = _ABAC.abac_id_free |
---|
| 565 | |
---|
| 566 | def abac_attribute_create(attr, issuer, role, validity): |
---|
| 567 | return _ABAC.abac_attribute_create(attr, issuer, role, validity) |
---|
| 568 | abac_attribute_create = _ABAC.abac_attribute_create |
---|
| 569 | |
---|
| 570 | def abac_attribute_set_head(attr, string): |
---|
| 571 | return _ABAC.abac_attribute_set_head(attr, string) |
---|
| 572 | abac_attribute_set_head = _ABAC.abac_attribute_set_head |
---|
| 573 | |
---|
| 574 | def abac_attribute_get_head(arg1): |
---|
| 575 | return _ABAC.abac_attribute_get_head(arg1) |
---|
| 576 | abac_attribute_get_head = _ABAC.abac_attribute_get_head |
---|
| 577 | |
---|
| 578 | def abac_attribute_principal(attr, keyid): |
---|
| 579 | return _ABAC.abac_attribute_principal(attr, keyid) |
---|
| 580 | abac_attribute_principal = _ABAC.abac_attribute_principal |
---|
| 581 | |
---|
| 582 | def abac_attribute_role(attr, keyid, role): |
---|
| 583 | return _ABAC.abac_attribute_role(attr, keyid, role) |
---|
| 584 | abac_attribute_role = _ABAC.abac_attribute_role |
---|
| 585 | |
---|
| 586 | def abac_attribute_linking_role(attr, keyid, role, linked): |
---|
| 587 | return _ABAC.abac_attribute_linking_role(attr, keyid, role, linked) |
---|
| 588 | abac_attribute_linking_role = _ABAC.abac_attribute_linking_role |
---|
| 589 | |
---|
| 590 | def abac_attribute_bake(attr): |
---|
| 591 | return _ABAC.abac_attribute_bake(attr) |
---|
| 592 | abac_attribute_bake = _ABAC.abac_attribute_bake |
---|
| 593 | |
---|
| 594 | def abac_attribute_bake_context(attr, ctxt): |
---|
| 595 | return _ABAC.abac_attribute_bake_context(attr, ctxt) |
---|
| 596 | abac_attribute_bake_context = _ABAC.abac_attribute_bake_context |
---|
| 597 | |
---|
| 598 | def abac_attribute_baked(attr): |
---|
| 599 | return _ABAC.abac_attribute_baked(attr) |
---|
| 600 | abac_attribute_baked = _ABAC.abac_attribute_baked |
---|
| 601 | |
---|
| 602 | def abac_attribute_write(attr, out): |
---|
| 603 | return _ABAC.abac_attribute_write(attr, out) |
---|
| 604 | abac_attribute_write = _ABAC.abac_attribute_write |
---|
| 605 | |
---|
| 606 | def abac_attribute_write_file(attr, fname): |
---|
| 607 | return _ABAC.abac_attribute_write_file(attr, fname) |
---|
| 608 | abac_attribute_write_file = _ABAC.abac_attribute_write_file |
---|
| 609 | |
---|
| 610 | def abac_attribute_get_ntails(a): |
---|
| 611 | return _ABAC.abac_attribute_get_ntails(a) |
---|
| 612 | abac_attribute_get_ntails = _ABAC.abac_attribute_get_ntails |
---|
| 613 | |
---|
| 614 | def abac_attribute_get_tail_n(a, n): |
---|
| 615 | return _ABAC.abac_attribute_get_tail_n(a, n) |
---|
| 616 | abac_attribute_get_tail_n = _ABAC.abac_attribute_get_tail_n |
---|
| 617 | |
---|
| 618 | def abac_attribute_cert_chunk(arg1): |
---|
| 619 | return _ABAC.abac_attribute_cert_chunk(arg1) |
---|
| 620 | abac_attribute_cert_chunk = _ABAC.abac_attribute_cert_chunk |
---|
| 621 | |
---|
| 622 | def abac_attribute_free(arg1): |
---|
| 623 | return _ABAC.abac_attribute_free(arg1) |
---|
| 624 | abac_attribute_free = _ABAC.abac_attribute_free |
---|
| 625 | |
---|
| 626 | def abac_attribute_certs_from_file(arg1, arg2): |
---|
| 627 | return _ABAC.abac_attribute_certs_from_file(arg1, arg2) |
---|
| 628 | abac_attribute_certs_from_file = _ABAC.abac_attribute_certs_from_file |
---|
| 629 | |
---|
| 630 | def abac_attribute_certs_from_chunk(arg1, arg2): |
---|
| 631 | return _ABAC.abac_attribute_certs_from_chunk(arg1, arg2) |
---|
| 632 | abac_attribute_certs_from_chunk = _ABAC.abac_attribute_certs_from_chunk |
---|
| 633 | |
---|
| 634 | def abac_attribute_role_string(attr): |
---|
| 635 | return _ABAC.abac_attribute_role_string(attr) |
---|
| 636 | abac_attribute_role_string = _ABAC.abac_attribute_role_string |
---|
| 637 | |
---|
| 638 | def abac_attribute_issuer_id(ptr): |
---|
| 639 | return _ABAC.abac_attribute_issuer_id(ptr) |
---|
| 640 | abac_attribute_issuer_id = _ABAC.abac_attribute_issuer_id |
---|
| 641 | |
---|
| 642 | def abac_attribute_get_output_format(arg1): |
---|
| 643 | return _ABAC.abac_attribute_get_output_format(arg1) |
---|
| 644 | abac_attribute_get_output_format = _ABAC.abac_attribute_get_output_format |
---|
| 645 | |
---|
| 646 | def abac_attribute_set_output_format(arg1, arg2): |
---|
| 647 | return _ABAC.abac_attribute_set_output_format(arg1, arg2) |
---|
| 648 | abac_attribute_set_output_format = _ABAC.abac_attribute_set_output_format |
---|
| 649 | |
---|
| 650 | def abac_attribute_validity(attr, not_before, not_after): |
---|
| 651 | return _ABAC.abac_attribute_validity(attr, not_before, not_after) |
---|
| 652 | abac_attribute_validity = _ABAC.abac_attribute_validity |
---|
| 653 | |
---|
| 654 | def abac_attribute_get_keyid_map(arg1): |
---|
| 655 | return _ABAC.abac_attribute_get_keyid_map(arg1) |
---|
| 656 | abac_attribute_get_keyid_map = _ABAC.abac_attribute_get_keyid_map |
---|
| 657 | |
---|
| 658 | def abac_attribute_get_principal(attr): |
---|
| 659 | return _ABAC.abac_attribute_get_principal(attr) |
---|
| 660 | abac_attribute_get_principal = _ABAC.abac_attribute_get_principal |
---|
| 661 | |
---|
| 662 | def abac_attribute_still_valid(attr): |
---|
| 663 | return _ABAC.abac_attribute_still_valid(attr) |
---|
| 664 | abac_attribute_still_valid = _ABAC.abac_attribute_still_valid |
---|
| 665 | |
---|
| 666 | def abac_keyid_mapping_new(k, v): |
---|
| 667 | return _ABAC.abac_keyid_mapping_new(k, v) |
---|
| 668 | abac_keyid_mapping_new = _ABAC.abac_keyid_mapping_new |
---|
| 669 | |
---|
| 670 | def abac_keyid_mapping_free(m): |
---|
| 671 | return _ABAC.abac_keyid_mapping_free(m) |
---|
| 672 | abac_keyid_mapping_free = _ABAC.abac_keyid_mapping_free |
---|
| 673 | |
---|
| 674 | def abac_keyid_map_new(): |
---|
| 675 | return _ABAC.abac_keyid_map_new() |
---|
| 676 | abac_keyid_map_new = _ABAC.abac_keyid_map_new |
---|
| 677 | |
---|
| 678 | def abac_keyid_map_dup(arg1): |
---|
| 679 | return _ABAC.abac_keyid_map_dup(arg1) |
---|
| 680 | abac_keyid_map_dup = _ABAC.abac_keyid_map_dup |
---|
| 681 | |
---|
| 682 | def abac_keyid_map_clone(arg1): |
---|
| 683 | return _ABAC.abac_keyid_map_clone(arg1) |
---|
| 684 | abac_keyid_map_clone = _ABAC.abac_keyid_map_clone |
---|
| 685 | |
---|
| 686 | def abac_keyid_map_free(m): |
---|
| 687 | return _ABAC.abac_keyid_map_free(m) |
---|
| 688 | abac_keyid_map_free = _ABAC.abac_keyid_map_free |
---|
| 689 | |
---|
| 690 | def abac_keyid_map_key_to_nickname(m, key): |
---|
| 691 | return _ABAC.abac_keyid_map_key_to_nickname(m, key) |
---|
| 692 | abac_keyid_map_key_to_nickname = _ABAC.abac_keyid_map_key_to_nickname |
---|
| 693 | |
---|
| 694 | def abac_keyid_map_nickname_to_key(m, nick): |
---|
| 695 | return _ABAC.abac_keyid_map_nickname_to_key(m, nick) |
---|
| 696 | abac_keyid_map_nickname_to_key = _ABAC.abac_keyid_map_nickname_to_key |
---|
| 697 | |
---|
| 698 | def abac_keyid_map_remove_keyid(m, key): |
---|
| 699 | return _ABAC.abac_keyid_map_remove_keyid(m, key) |
---|
| 700 | abac_keyid_map_remove_keyid = _ABAC.abac_keyid_map_remove_keyid |
---|
| 701 | |
---|
| 702 | def abac_keyid_map_add_nickname(m, key, nick): |
---|
| 703 | return _ABAC.abac_keyid_map_add_nickname(m, key, nick) |
---|
| 704 | abac_keyid_map_add_nickname = _ABAC.abac_keyid_map_add_nickname |
---|
| 705 | |
---|
| 706 | def abac_keyid_map_merge(d, s, overwrite): |
---|
| 707 | return _ABAC.abac_keyid_map_merge(d, s, overwrite) |
---|
| 708 | abac_keyid_map_merge = _ABAC.abac_keyid_map_merge |
---|
| 709 | |
---|
| 710 | def abac_keyid_map_expand_key(m, s): |
---|
| 711 | return _ABAC.abac_keyid_map_expand_key(m, s) |
---|
| 712 | abac_keyid_map_expand_key = _ABAC.abac_keyid_map_expand_key |
---|
| 713 | |
---|
| 714 | def abac_keyid_map_expand_nickname(m, s): |
---|
| 715 | return _ABAC.abac_keyid_map_expand_nickname(m, s) |
---|
| 716 | abac_keyid_map_expand_nickname = _ABAC.abac_keyid_map_expand_nickname |
---|
| 717 | ABAC_RC_SUCCESS = _ABAC.ABAC_RC_SUCCESS |
---|
| 718 | ABAC_RC_FAILURE = _ABAC.ABAC_RC_FAILURE |
---|
| 719 | ABAC_CERT_SUCCESS = _ABAC.ABAC_CERT_SUCCESS |
---|
| 720 | ABAC_CERT_INVALID = _ABAC.ABAC_CERT_INVALID |
---|
| 721 | ABAC_CERT_BAD_SIG = _ABAC.ABAC_CERT_BAD_SIG |
---|
| 722 | ABAC_CERT_MISSING_ISSUER = _ABAC.ABAC_CERT_MISSING_ISSUER |
---|
| 723 | ABAC_CERT_BAD_PRINCIPAL = _ABAC.ABAC_CERT_BAD_PRINCIPAL |
---|
| 724 | ABAC_CERT_INVALID_ISSUER = _ABAC.ABAC_CERT_INVALID_ISSUER |
---|
| 725 | ABAC_CERT_SIGNER_NOKEY = _ABAC.ABAC_CERT_SIGNER_NOKEY |
---|
| 726 | ABAC_SUCCESS = _ABAC.ABAC_SUCCESS |
---|
| 727 | ABAC_FAILURE = _ABAC.ABAC_FAILURE |
---|
| 728 | ABAC_GENERATE_INVALID_CN = _ABAC.ABAC_GENERATE_INVALID_CN |
---|
| 729 | ABAC_GENERATE_INVALID_VALIDITY = _ABAC.ABAC_GENERATE_INVALID_VALIDITY |
---|
| 730 | ABAC_ATTRIBUTE_ISSUER_NOKEY = _ABAC.ABAC_ATTRIBUTE_ISSUER_NOKEY |
---|
| 731 | ABAC_ATTRIBUTE_INVALID_ROLE = _ABAC.ABAC_ATTRIBUTE_INVALID_ROLE |
---|
| 732 | ABAC_ATTRIBUTE_INVALID_VALIDITY = _ABAC.ABAC_ATTRIBUTE_INVALID_VALIDITY |
---|
| 733 | ABAC_ATTRIBUTE_INVALID_ISSUER = _ABAC.ABAC_ATTRIBUTE_INVALID_ISSUER |
---|
| 734 | class Context(_object): |
---|
| 735 | __swig_setmethods__ = {} |
---|
| 736 | __setattr__ = lambda self, name, value: _swig_setattr(self, Context, name, value) |
---|
| 737 | __swig_getmethods__ = {} |
---|
| 738 | __getattr__ = lambda self, name: _swig_getattr(self, Context, name) |
---|
| 739 | __repr__ = _swig_repr |
---|
| 740 | |
---|
| 741 | def __init__(self, *args): |
---|
| 742 | this = _ABAC.new_Context(*args) |
---|
| 743 | try: |
---|
| 744 | self.this.append(this) |
---|
| 745 | except __builtin__.Exception: |
---|
| 746 | self.this = this |
---|
| 747 | __swig_destroy__ = _ABAC.delete_Context |
---|
| 748 | __del__ = lambda self: None |
---|
| 749 | |
---|
| 750 | def load_id_file(self, filename): |
---|
| 751 | return _ABAC.Context_load_id_file(self, filename) |
---|
| 752 | |
---|
| 753 | def load_id_chunk(self, cert): |
---|
| 754 | return _ABAC.Context_load_id_chunk(self, cert) |
---|
| 755 | |
---|
| 756 | def load_id_id(self, id): |
---|
| 757 | return _ABAC.Context_load_id_id(self, id) |
---|
| 758 | |
---|
| 759 | def load_attribute_file(self, filename): |
---|
| 760 | return _ABAC.Context_load_attribute_file(self, filename) |
---|
| 761 | |
---|
| 762 | def load_attribute_chunk(self, cert): |
---|
| 763 | return _ABAC.Context_load_attribute_chunk(self, cert) |
---|
| 764 | |
---|
| 765 | def query(self, role, principal): |
---|
| 766 | return _ABAC.Context_query(self, role, principal) |
---|
| 767 | |
---|
| 768 | def credentials(self): |
---|
| 769 | return _ABAC.Context_credentials(self) |
---|
| 770 | |
---|
| 771 | def load_directory(self, path): |
---|
| 772 | return _ABAC.Context_load_directory(self, path) |
---|
| 773 | |
---|
| 774 | def set_nickname(self, key, nick): |
---|
| 775 | return _ABAC.Context_set_nickname(self, key, nick) |
---|
| 776 | Context_swigregister = _ABAC.Context_swigregister |
---|
| 777 | Context_swigregister(Context) |
---|
| 778 | |
---|
| 779 | class Role(_object): |
---|
| 780 | __swig_setmethods__ = {} |
---|
| 781 | __setattr__ = lambda self, name, value: _swig_setattr(self, Role, name, value) |
---|
| 782 | __swig_getmethods__ = {} |
---|
| 783 | __getattr__ = lambda self, name: _swig_getattr(self, Role, name) |
---|
| 784 | __repr__ = _swig_repr |
---|
| 785 | |
---|
| 786 | def __init__(self, *args): |
---|
| 787 | this = _ABAC.new_Role(*args) |
---|
| 788 | try: |
---|
| 789 | self.this.append(this) |
---|
| 790 | except __builtin__.Exception: |
---|
| 791 | self.this = this |
---|
| 792 | __swig_destroy__ = _ABAC.delete_Role |
---|
| 793 | __del__ = lambda self: None |
---|
| 794 | |
---|
| 795 | def is_principal(self): |
---|
| 796 | return _ABAC.Role_is_principal(self) |
---|
| 797 | |
---|
| 798 | def is_role(self): |
---|
| 799 | return _ABAC.Role_is_role(self) |
---|
| 800 | |
---|
| 801 | def is_linking(self): |
---|
| 802 | return _ABAC.Role_is_linking(self) |
---|
| 803 | |
---|
| 804 | def string(self): |
---|
| 805 | return _ABAC.Role_string(self) |
---|
| 806 | |
---|
| 807 | def short_string(self, c): |
---|
| 808 | return _ABAC.Role_short_string(self, c) |
---|
| 809 | |
---|
| 810 | def linked_role(self): |
---|
| 811 | return _ABAC.Role_linked_role(self) |
---|
| 812 | |
---|
| 813 | def role_name(self): |
---|
| 814 | return _ABAC.Role_role_name(self) |
---|
| 815 | |
---|
| 816 | def principal(self): |
---|
| 817 | return _ABAC.Role_principal(self) |
---|
| 818 | Role_swigregister = _ABAC.Role_swigregister |
---|
| 819 | Role_swigregister(Role) |
---|
| 820 | |
---|
| 821 | class Credential(_object): |
---|
| 822 | __swig_setmethods__ = {} |
---|
| 823 | __setattr__ = lambda self, name, value: _swig_setattr(self, Credential, name, value) |
---|
| 824 | __swig_getmethods__ = {} |
---|
| 825 | __getattr__ = lambda self, name: _swig_getattr(self, Credential, name) |
---|
| 826 | __repr__ = _swig_repr |
---|
| 827 | |
---|
| 828 | def __init__(self, *args): |
---|
| 829 | this = _ABAC.new_Credential(*args) |
---|
| 830 | try: |
---|
| 831 | self.this.append(this) |
---|
| 832 | except __builtin__.Exception: |
---|
| 833 | self.this = this |
---|
| 834 | __swig_destroy__ = _ABAC.delete_Credential |
---|
| 835 | __del__ = lambda self: None |
---|
| 836 | |
---|
| 837 | def head(self): |
---|
| 838 | return _ABAC.Credential_head(self) |
---|
| 839 | |
---|
| 840 | def tail(self): |
---|
| 841 | return _ABAC.Credential_tail(self) |
---|
| 842 | |
---|
| 843 | def attribute_cert(self): |
---|
| 844 | return _ABAC.Credential_attribute_cert(self) |
---|
| 845 | |
---|
| 846 | def issuer_cert(self): |
---|
| 847 | return _ABAC.Credential_issuer_cert(self) |
---|
| 848 | Credential_swigregister = _ABAC.Credential_swigregister |
---|
| 849 | Credential_swigregister(Credential) |
---|
| 850 | |
---|
| 851 | class ID(_object): |
---|
| 852 | __swig_setmethods__ = {} |
---|
| 853 | __setattr__ = lambda self, name, value: _swig_setattr(self, ID, name, value) |
---|
| 854 | __swig_getmethods__ = {} |
---|
| 855 | __getattr__ = lambda self, name: _swig_getattr(self, ID, name) |
---|
| 856 | __repr__ = _swig_repr |
---|
| 857 | __swig_destroy__ = _ABAC.delete_ID |
---|
| 858 | __del__ = lambda self: None |
---|
| 859 | |
---|
| 860 | def __init__(self, *args): |
---|
| 861 | this = _ABAC.new_ID(*args) |
---|
| 862 | try: |
---|
| 863 | self.this.append(this) |
---|
| 864 | except __builtin__.Exception: |
---|
| 865 | self.this = this |
---|
| 866 | |
---|
| 867 | def load_privkey(self, filename): |
---|
| 868 | return _ABAC.ID_load_privkey(self, filename) |
---|
| 869 | |
---|
| 870 | def load_privkey_chunk(self, chunk): |
---|
| 871 | return _ABAC.ID_load_privkey_chunk(self, chunk) |
---|
| 872 | |
---|
| 873 | def has_privkey(self): |
---|
| 874 | return _ABAC.ID_has_privkey(self) |
---|
| 875 | |
---|
| 876 | def keyid(self): |
---|
| 877 | return _ABAC.ID_keyid(self) |
---|
| 878 | |
---|
| 879 | def cn(self): |
---|
| 880 | return _ABAC.ID_cn(self) |
---|
| 881 | |
---|
| 882 | def cert_filename(self): |
---|
| 883 | return _ABAC.ID_cert_filename(self) |
---|
| 884 | |
---|
| 885 | def write_cert(self, out): |
---|
| 886 | return _ABAC.ID_write_cert(self, out) |
---|
| 887 | |
---|
| 888 | def write_cert_file(self, n): |
---|
| 889 | return _ABAC.ID_write_cert_file(self, n) |
---|
| 890 | |
---|
| 891 | def write_cert_name(self, n): |
---|
| 892 | return _ABAC.ID_write_cert_name(self, n) |
---|
| 893 | |
---|
| 894 | def privkey_filename(self): |
---|
| 895 | return _ABAC.ID_privkey_filename(self) |
---|
| 896 | |
---|
| 897 | def write_privkey(self, out): |
---|
| 898 | return _ABAC.ID_write_privkey(self, out) |
---|
| 899 | |
---|
| 900 | def write_privkey_file(self, name): |
---|
| 901 | return _ABAC.ID_write_privkey_file(self, name) |
---|
| 902 | |
---|
| 903 | def write_privkey_name(self, name): |
---|
| 904 | return _ABAC.ID_write_privkey_name(self, name) |
---|
| 905 | |
---|
| 906 | def cert_chunk(self): |
---|
| 907 | return _ABAC.ID_cert_chunk(self) |
---|
| 908 | |
---|
| 909 | def privkey_chunk(self): |
---|
| 910 | return _ABAC.ID_privkey_chunk(self) |
---|
| 911 | ID_swigregister = _ABAC.ID_swigregister |
---|
| 912 | ID_swigregister(ID) |
---|
| 913 | |
---|
| 914 | def ID_chunk(chunk): |
---|
| 915 | val = _ABAC.new_ID_chunk(chunk) |
---|
| 916 | return val |
---|
| 917 | |
---|
| 918 | class Attribute(_object): |
---|
| 919 | __swig_setmethods__ = {} |
---|
| 920 | __setattr__ = lambda self, name, value: _swig_setattr(self, Attribute, name, value) |
---|
| 921 | __swig_getmethods__ = {} |
---|
| 922 | __getattr__ = lambda self, name: _swig_getattr(self, Attribute, name) |
---|
| 923 | __repr__ = _swig_repr |
---|
| 924 | __swig_destroy__ = _ABAC.delete_Attribute |
---|
| 925 | __del__ = lambda self: None |
---|
| 926 | |
---|
| 927 | def __init__(self, *args): |
---|
| 928 | this = _ABAC.new_Attribute(*args) |
---|
| 929 | try: |
---|
| 930 | self.this.append(this) |
---|
| 931 | except __builtin__.Exception: |
---|
| 932 | self.this = this |
---|
| 933 | |
---|
| 934 | def principal(self, keyid): |
---|
| 935 | return _ABAC.Attribute_principal(self, keyid) |
---|
| 936 | |
---|
| 937 | def role(self, keyid, role): |
---|
| 938 | return _ABAC.Attribute_role(self, keyid, role) |
---|
| 939 | |
---|
| 940 | def linking_role(self, keyid, role, linked): |
---|
| 941 | return _ABAC.Attribute_linking_role(self, keyid, role, linked) |
---|
| 942 | |
---|
| 943 | def bake(self, *args): |
---|
| 944 | return _ABAC.Attribute_bake(self, *args) |
---|
| 945 | |
---|
| 946 | def baked(self): |
---|
| 947 | return _ABAC.Attribute_baked(self) |
---|
| 948 | |
---|
| 949 | def set_output_format(self, fmt): |
---|
| 950 | return _ABAC.Attribute_set_output_format(self, fmt) |
---|
| 951 | |
---|
| 952 | def get_output_format(self): |
---|
| 953 | return _ABAC.Attribute_get_output_format(self) |
---|
| 954 | |
---|
| 955 | def write(self, out): |
---|
| 956 | return _ABAC.Attribute_write(self, out) |
---|
| 957 | |
---|
| 958 | def write_file(self, name): |
---|
| 959 | return _ABAC.Attribute_write_file(self, name) |
---|
| 960 | |
---|
| 961 | def write_name(self, name): |
---|
| 962 | return _ABAC.Attribute_write_name(self, name) |
---|
| 963 | |
---|
| 964 | def cert_chunk(self): |
---|
| 965 | return _ABAC.Attribute_cert_chunk(self) |
---|
| 966 | Attribute_swigregister = _ABAC.Attribute_swigregister |
---|
| 967 | Attribute_swigregister(Attribute) |
---|
| 968 | |
---|
| 969 | # This file is compatible with both classic and new-style classes. |
---|
| 970 | |
---|
| 971 | |
---|