source: swig/python/ABAC.py @ 80a0f3f

Last change on this file since 80a0f3f was 80a0f3f, checked in by Kyle <khaefner@…>, 7 years ago

initial commit

  • Property mode set to 100644
File size: 31.0 KB
Line 
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
11from sys import version_info as _swig_python_version_info
12if _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
23elif _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
41else:
42    import _ABAC
43del _swig_python_version_info
44try:
45    _swig_property = property
46except NameError:
47    pass  # Python < 2.2 doesn't have 'property'.
48
49try:
50    import builtins as __builtin__
51except ImportError:
52    import __builtin__
53
54def _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
73def _swig_setattr(self, class_type, name, value):
74    return _swig_setattr_nondynamic(self, class_type, name, value, 0)
75
76
77def _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
86def _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
93try:
94    _object = object
95    _newclass = 1
96except __builtin__.Exception:
97    class _object:
98        pass
99    _newclass = 0
100
101class 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
162SwigPyIterator_swigregister = _ABAC.SwigPyIterator_swigregister
163SwigPyIterator_swigregister(SwigPyIterator)
164
165class 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
272CredentialVector_swigregister = _ABAC.CredentialVector_swigregister
273CredentialVector_swigregister(CredentialVector)
274
275class 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
298abac_chunk_t_swigregister = _ABAC.abac_chunk_t_swigregister
299abac_chunk_t_swigregister(abac_chunk_t)
300
301
302def abac_chunk_free(arg1):
303    return _ABAC.abac_chunk_free(arg1)
304abac_chunk_free = _ABAC.abac_chunk_free
305
306def abac_context_new():
307    return _ABAC.abac_context_new()
308abac_context_new = _ABAC.abac_context_new
309
310def abac_context_dup(ctx):
311    return _ABAC.abac_context_dup(ctx)
312abac_context_dup = _ABAC.abac_context_dup
313
314def abac_context_free(ctx):
315    return _ABAC.abac_context_free(ctx)
316abac_context_free = _ABAC.abac_context_free
317
318def abac_context_load_id_file(ctx, filename):
319    return _ABAC.abac_context_load_id_file(ctx, filename)
320abac_context_load_id_file = _ABAC.abac_context_load_id_file
321
322def abac_context_load_id_chunk(ctx, cert):
323    return _ABAC.abac_context_load_id_chunk(ctx, cert)
324abac_context_load_id_chunk = _ABAC.abac_context_load_id_chunk
325
326def abac_context_load_id_id(ctx, cert):
327    return _ABAC.abac_context_load_id_id(ctx, cert)
328abac_context_load_id_id = _ABAC.abac_context_load_id_id
329
330def abac_context_load_attribute_file(ctx, filename):
331    return _ABAC.abac_context_load_attribute_file(ctx, filename)
332abac_context_load_attribute_file = _ABAC.abac_context_load_attribute_file
333
334def abac_context_load_attribute_chunk(ctx, cert):
335    return _ABAC.abac_context_load_attribute_chunk(ctx, cert)
336abac_context_load_attribute_chunk = _ABAC.abac_context_load_attribute_chunk
337
338def abac_context_load_directory(ctx, path):
339    return _ABAC.abac_context_load_directory(ctx, path)
340abac_context_load_directory = _ABAC.abac_context_load_directory
341
342def abac_context_query(ctx, role, principal, success):
343    return _ABAC.abac_context_query(ctx, role, principal, success)
344abac_context_query = _ABAC.abac_context_query
345
346def abac_context_credentials(ctx):
347    return _ABAC.abac_context_credentials(ctx)
348abac_context_credentials = _ABAC.abac_context_credentials
349
350def abac_context_principals(ctx):
351    return _ABAC.abac_context_principals(ctx)
352abac_context_principals = _ABAC.abac_context_principals
353
354def abac_context_id_credentials_free(arg1):
355    return _ABAC.abac_context_id_credentials_free(arg1)
356abac_context_id_credentials_free = _ABAC.abac_context_id_credentials_free
357
358def abac_context_credentials_free(credentials):
359    return _ABAC.abac_context_credentials_free(credentials)
360abac_context_credentials_free = _ABAC.abac_context_credentials_free
361
362def abac_context_set_nickname(ctxt, key, nick):
363    return _ABAC.abac_context_set_nickname(ctxt, key, nick)
364abac_context_set_nickname = _ABAC.abac_context_set_nickname
365
366def abac_context_expand_key(ctxt, s):
367    return _ABAC.abac_context_expand_key(ctxt, s)
368abac_context_expand_key = _ABAC.abac_context_expand_key
369
370def abac_context_expand_nickname(ctxt, s):
371    return _ABAC.abac_context_expand_nickname(ctxt, s)
372abac_context_expand_nickname = _ABAC.abac_context_expand_nickname
373
374def abac_context_get_keyid_map(ctxt):
375    return _ABAC.abac_context_get_keyid_map(ctxt)
376abac_context_get_keyid_map = _ABAC.abac_context_get_keyid_map
377
378def abac_credential_head(cred):
379    return _ABAC.abac_credential_head(cred)
380abac_credential_head = _ABAC.abac_credential_head
381
382def abac_credential_tail(cred):
383    return _ABAC.abac_credential_tail(cred)
384abac_credential_tail = _ABAC.abac_credential_tail
385
386def abac_credential_attribute_cert(cred):
387    return _ABAC.abac_credential_attribute_cert(cred)
388abac_credential_attribute_cert = _ABAC.abac_credential_attribute_cert
389
390def abac_credential_issuer_cert(cred):
391    return _ABAC.abac_credential_issuer_cert(cred)
392abac_credential_issuer_cert = _ABAC.abac_credential_issuer_cert
393
394def abac_credential_dup(cred):
395    return _ABAC.abac_credential_dup(cred)
396abac_credential_dup = _ABAC.abac_credential_dup
397
398def abac_credential_free(cred):
399    return _ABAC.abac_credential_free(cred)
400abac_credential_free = _ABAC.abac_credential_free
401
402def abac_id_cert_keyid(arg1):
403    return _ABAC.abac_id_cert_keyid(arg1)
404abac_id_cert_keyid = _ABAC.abac_id_cert_keyid
405
406def abac_id_cert_cn(arg1):
407    return _ABAC.abac_id_cert_cn(arg1)
408abac_id_cert_cn = _ABAC.abac_id_cert_cn
409
410def abac_role_principal_new(principal):
411    return _ABAC.abac_role_principal_new(principal)
412abac_role_principal_new = _ABAC.abac_role_principal_new
413
414def abac_role_role_new(principal, abac_role_name):
415    return _ABAC.abac_role_role_new(principal, abac_role_name)
416abac_role_role_new = _ABAC.abac_role_role_new
417
418def abac_role_linking_new(principal, linked_role, abac_role_name):
419    return _ABAC.abac_role_linking_new(principal, linked_role, abac_role_name)
420abac_role_linking_new = _ABAC.abac_role_linking_new
421
422def abac_role_free(role):
423    return _ABAC.abac_role_free(role)
424abac_role_free = _ABAC.abac_role_free
425
426def abac_role_from_string(string):
427    return _ABAC.abac_role_from_string(string)
428abac_role_from_string = _ABAC.abac_role_from_string
429
430def abac_role_dup(role):
431    return _ABAC.abac_role_dup(role)
432abac_role_dup = _ABAC.abac_role_dup
433
434def abac_role_is_principal(role):
435    return _ABAC.abac_role_is_principal(role)
436abac_role_is_principal = _ABAC.abac_role_is_principal
437
438def abac_role_is_role(role):
439    return _ABAC.abac_role_is_role(role)
440abac_role_is_role = _ABAC.abac_role_is_role
441
442def abac_role_is_linking(role):
443    return _ABAC.abac_role_is_linking(role)
444abac_role_is_linking = _ABAC.abac_role_is_linking
445
446def abac_role_is_intersection(role):
447    return _ABAC.abac_role_is_intersection(role)
448abac_role_is_intersection = _ABAC.abac_role_is_intersection
449
450def abac_role_string(role):
451    return _ABAC.abac_role_string(role)
452abac_role_string = _ABAC.abac_role_string
453
454def abac_role_short_string(role, ctxt):
455    return _ABAC.abac_role_short_string(role, ctxt)
456abac_role_short_string = _ABAC.abac_role_short_string
457
458def abac_role_linked_role(role):
459    return _ABAC.abac_role_linked_role(role)
460abac_role_linked_role = _ABAC.abac_role_linked_role
461
462def abac_role_linking_role(role):
463    return _ABAC.abac_role_linking_role(role)
464abac_role_linking_role = _ABAC.abac_role_linking_role
465
466def abac_role_role_name(role):
467    return _ABAC.abac_role_role_name(role)
468abac_role_role_name = _ABAC.abac_role_role_name
469
470def abac_role_principal(role):
471    return _ABAC.abac_role_principal(role)
472abac_role_principal = _ABAC.abac_role_principal
473
474def abac_role_attr_key(head_role, tail_role):
475    return _ABAC.abac_role_attr_key(head_role, tail_role)
476abac_role_attr_key = _ABAC.abac_role_attr_key
477
478def abac_id_from_file(arg1):
479    return _ABAC.abac_id_from_file(arg1)
480abac_id_from_file = _ABAC.abac_id_from_file
481
482def abac_id_from_chunk(chunk):
483    return _ABAC.abac_id_from_chunk(chunk)
484abac_id_from_chunk = _ABAC.abac_id_from_chunk
485
486def abac_id_privkey_from_file(id, filename):
487    return _ABAC.abac_id_privkey_from_file(id, filename)
488abac_id_privkey_from_file = _ABAC.abac_id_privkey_from_file
489
490def abac_id_privkey_from_chunk(id, chunk):
491    return _ABAC.abac_id_privkey_from_chunk(id, chunk)
492abac_id_privkey_from_chunk = _ABAC.abac_id_privkey_from_chunk
493
494def abac_id_generate(ret, cn, validity):
495    return _ABAC.abac_id_generate(ret, cn, validity)
496abac_id_generate = _ABAC.abac_id_generate
497
498def abac_id_generate_with_key(ret, cn, validity, keyfile):
499    return _ABAC.abac_id_generate_with_key(ret, cn, validity, keyfile)
500abac_id_generate_with_key = _ABAC.abac_id_generate_with_key
501
502def abac_id_keyid(id):
503    return _ABAC.abac_id_keyid(id)
504abac_id_keyid = _ABAC.abac_id_keyid
505
506def abac_id_cn(id):
507    return _ABAC.abac_id_cn(id)
508abac_id_cn = _ABAC.abac_id_cn
509
510def abac_id_issuer(id):
511    return _ABAC.abac_id_issuer(id)
512abac_id_issuer = _ABAC.abac_id_issuer
513
514def abac_id_subject(id):
515    return _ABAC.abac_id_subject(id)
516abac_id_subject = _ABAC.abac_id_subject
517
518def abac_id_still_valid(id):
519    return _ABAC.abac_id_still_valid(id)
520abac_id_still_valid = _ABAC.abac_id_still_valid
521
522def abac_id_has_keyid(id, arg2):
523    return _ABAC.abac_id_has_keyid(id, arg2)
524abac_id_has_keyid = _ABAC.abac_id_has_keyid
525
526def abac_id_has_privkey(id):
527    return _ABAC.abac_id_has_privkey(id)
528abac_id_has_privkey = _ABAC.abac_id_has_privkey
529
530def abac_id_validity(id, not_before, not_after):
531    return _ABAC.abac_id_validity(id, not_before, not_after)
532abac_id_validity = _ABAC.abac_id_validity
533
534def abac_id_cert_filename(id):
535    return _ABAC.abac_id_cert_filename(id)
536abac_id_cert_filename = _ABAC.abac_id_cert_filename
537
538def abac_id_write_cert(id, out):
539    return _ABAC.abac_id_write_cert(id, out)
540abac_id_write_cert = _ABAC.abac_id_write_cert
541
542def abac_id_privkey_filename(id):
543    return _ABAC.abac_id_privkey_filename(id)
544abac_id_privkey_filename = _ABAC.abac_id_privkey_filename
545
546def abac_id_write_privkey(id, out):
547    return _ABAC.abac_id_write_privkey(id, out)
548abac_id_write_privkey = _ABAC.abac_id_write_privkey
549
550def abac_id_cert_chunk(id):
551    return _ABAC.abac_id_cert_chunk(id)
552abac_id_cert_chunk = _ABAC.abac_id_cert_chunk
553
554def abac_id_privkey_chunk(id):
555    return _ABAC.abac_id_privkey_chunk(id)
556abac_id_privkey_chunk = _ABAC.abac_id_privkey_chunk
557
558def abac_id_dup(id):
559    return _ABAC.abac_id_dup(id)
560abac_id_dup = _ABAC.abac_id_dup
561
562def abac_id_free(id):
563    return _ABAC.abac_id_free(id)
564abac_id_free = _ABAC.abac_id_free
565
566def abac_attribute_create(attr, issuer, role, validity):
567    return _ABAC.abac_attribute_create(attr, issuer, role, validity)
568abac_attribute_create = _ABAC.abac_attribute_create
569
570def abac_attribute_set_head(attr, string):
571    return _ABAC.abac_attribute_set_head(attr, string)
572abac_attribute_set_head = _ABAC.abac_attribute_set_head
573
574def abac_attribute_get_head(arg1):
575    return _ABAC.abac_attribute_get_head(arg1)
576abac_attribute_get_head = _ABAC.abac_attribute_get_head
577
578def abac_attribute_principal(attr, keyid):
579    return _ABAC.abac_attribute_principal(attr, keyid)
580abac_attribute_principal = _ABAC.abac_attribute_principal
581
582def abac_attribute_role(attr, keyid, role):
583    return _ABAC.abac_attribute_role(attr, keyid, role)
584abac_attribute_role = _ABAC.abac_attribute_role
585
586def abac_attribute_linking_role(attr, keyid, role, linked):
587    return _ABAC.abac_attribute_linking_role(attr, keyid, role, linked)
588abac_attribute_linking_role = _ABAC.abac_attribute_linking_role
589
590def abac_attribute_bake(attr):
591    return _ABAC.abac_attribute_bake(attr)
592abac_attribute_bake = _ABAC.abac_attribute_bake
593
594def abac_attribute_bake_context(attr, ctxt):
595    return _ABAC.abac_attribute_bake_context(attr, ctxt)
596abac_attribute_bake_context = _ABAC.abac_attribute_bake_context
597
598def abac_attribute_baked(attr):
599    return _ABAC.abac_attribute_baked(attr)
600abac_attribute_baked = _ABAC.abac_attribute_baked
601
602def abac_attribute_write(attr, out):
603    return _ABAC.abac_attribute_write(attr, out)
604abac_attribute_write = _ABAC.abac_attribute_write
605
606def abac_attribute_write_file(attr, fname):
607    return _ABAC.abac_attribute_write_file(attr, fname)
608abac_attribute_write_file = _ABAC.abac_attribute_write_file
609
610def abac_attribute_get_ntails(a):
611    return _ABAC.abac_attribute_get_ntails(a)
612abac_attribute_get_ntails = _ABAC.abac_attribute_get_ntails
613
614def abac_attribute_get_tail_n(a, n):
615    return _ABAC.abac_attribute_get_tail_n(a, n)
616abac_attribute_get_tail_n = _ABAC.abac_attribute_get_tail_n
617
618def abac_attribute_cert_chunk(arg1):
619    return _ABAC.abac_attribute_cert_chunk(arg1)
620abac_attribute_cert_chunk = _ABAC.abac_attribute_cert_chunk
621
622def abac_attribute_free(arg1):
623    return _ABAC.abac_attribute_free(arg1)
624abac_attribute_free = _ABAC.abac_attribute_free
625
626def abac_attribute_certs_from_file(arg1, arg2):
627    return _ABAC.abac_attribute_certs_from_file(arg1, arg2)
628abac_attribute_certs_from_file = _ABAC.abac_attribute_certs_from_file
629
630def abac_attribute_certs_from_chunk(arg1, arg2):
631    return _ABAC.abac_attribute_certs_from_chunk(arg1, arg2)
632abac_attribute_certs_from_chunk = _ABAC.abac_attribute_certs_from_chunk
633
634def abac_attribute_role_string(attr):
635    return _ABAC.abac_attribute_role_string(attr)
636abac_attribute_role_string = _ABAC.abac_attribute_role_string
637
638def abac_attribute_issuer_id(ptr):
639    return _ABAC.abac_attribute_issuer_id(ptr)
640abac_attribute_issuer_id = _ABAC.abac_attribute_issuer_id
641
642def abac_attribute_get_output_format(arg1):
643    return _ABAC.abac_attribute_get_output_format(arg1)
644abac_attribute_get_output_format = _ABAC.abac_attribute_get_output_format
645
646def abac_attribute_set_output_format(arg1, arg2):
647    return _ABAC.abac_attribute_set_output_format(arg1, arg2)
648abac_attribute_set_output_format = _ABAC.abac_attribute_set_output_format
649
650def abac_attribute_validity(attr, not_before, not_after):
651    return _ABAC.abac_attribute_validity(attr, not_before, not_after)
652abac_attribute_validity = _ABAC.abac_attribute_validity
653
654def abac_attribute_get_keyid_map(arg1):
655    return _ABAC.abac_attribute_get_keyid_map(arg1)
656abac_attribute_get_keyid_map = _ABAC.abac_attribute_get_keyid_map
657
658def abac_attribute_get_principal(attr):
659    return _ABAC.abac_attribute_get_principal(attr)
660abac_attribute_get_principal = _ABAC.abac_attribute_get_principal
661
662def abac_attribute_still_valid(attr):
663    return _ABAC.abac_attribute_still_valid(attr)
664abac_attribute_still_valid = _ABAC.abac_attribute_still_valid
665
666def abac_keyid_mapping_new(k, v):
667    return _ABAC.abac_keyid_mapping_new(k, v)
668abac_keyid_mapping_new = _ABAC.abac_keyid_mapping_new
669
670def abac_keyid_mapping_free(m):
671    return _ABAC.abac_keyid_mapping_free(m)
672abac_keyid_mapping_free = _ABAC.abac_keyid_mapping_free
673
674def abac_keyid_map_new():
675    return _ABAC.abac_keyid_map_new()
676abac_keyid_map_new = _ABAC.abac_keyid_map_new
677
678def abac_keyid_map_dup(arg1):
679    return _ABAC.abac_keyid_map_dup(arg1)
680abac_keyid_map_dup = _ABAC.abac_keyid_map_dup
681
682def abac_keyid_map_clone(arg1):
683    return _ABAC.abac_keyid_map_clone(arg1)
684abac_keyid_map_clone = _ABAC.abac_keyid_map_clone
685
686def abac_keyid_map_free(m):
687    return _ABAC.abac_keyid_map_free(m)
688abac_keyid_map_free = _ABAC.abac_keyid_map_free
689
690def abac_keyid_map_key_to_nickname(m, key):
691    return _ABAC.abac_keyid_map_key_to_nickname(m, key)
692abac_keyid_map_key_to_nickname = _ABAC.abac_keyid_map_key_to_nickname
693
694def abac_keyid_map_nickname_to_key(m, nick):
695    return _ABAC.abac_keyid_map_nickname_to_key(m, nick)
696abac_keyid_map_nickname_to_key = _ABAC.abac_keyid_map_nickname_to_key
697
698def abac_keyid_map_remove_keyid(m, key):
699    return _ABAC.abac_keyid_map_remove_keyid(m, key)
700abac_keyid_map_remove_keyid = _ABAC.abac_keyid_map_remove_keyid
701
702def abac_keyid_map_add_nickname(m, key, nick):
703    return _ABAC.abac_keyid_map_add_nickname(m, key, nick)
704abac_keyid_map_add_nickname = _ABAC.abac_keyid_map_add_nickname
705
706def abac_keyid_map_merge(d, s, overwrite):
707    return _ABAC.abac_keyid_map_merge(d, s, overwrite)
708abac_keyid_map_merge = _ABAC.abac_keyid_map_merge
709
710def abac_keyid_map_expand_key(m, s):
711    return _ABAC.abac_keyid_map_expand_key(m, s)
712abac_keyid_map_expand_key = _ABAC.abac_keyid_map_expand_key
713
714def abac_keyid_map_expand_nickname(m, s):
715    return _ABAC.abac_keyid_map_expand_nickname(m, s)
716abac_keyid_map_expand_nickname = _ABAC.abac_keyid_map_expand_nickname
717ABAC_RC_SUCCESS = _ABAC.ABAC_RC_SUCCESS
718ABAC_RC_FAILURE = _ABAC.ABAC_RC_FAILURE
719ABAC_CERT_SUCCESS = _ABAC.ABAC_CERT_SUCCESS
720ABAC_CERT_INVALID = _ABAC.ABAC_CERT_INVALID
721ABAC_CERT_BAD_SIG = _ABAC.ABAC_CERT_BAD_SIG
722ABAC_CERT_MISSING_ISSUER = _ABAC.ABAC_CERT_MISSING_ISSUER
723ABAC_CERT_BAD_PRINCIPAL = _ABAC.ABAC_CERT_BAD_PRINCIPAL
724ABAC_CERT_INVALID_ISSUER = _ABAC.ABAC_CERT_INVALID_ISSUER
725ABAC_CERT_SIGNER_NOKEY = _ABAC.ABAC_CERT_SIGNER_NOKEY
726ABAC_SUCCESS = _ABAC.ABAC_SUCCESS
727ABAC_FAILURE = _ABAC.ABAC_FAILURE
728ABAC_GENERATE_INVALID_CN = _ABAC.ABAC_GENERATE_INVALID_CN
729ABAC_GENERATE_INVALID_VALIDITY = _ABAC.ABAC_GENERATE_INVALID_VALIDITY
730ABAC_ATTRIBUTE_ISSUER_NOKEY = _ABAC.ABAC_ATTRIBUTE_ISSUER_NOKEY
731ABAC_ATTRIBUTE_INVALID_ROLE = _ABAC.ABAC_ATTRIBUTE_INVALID_ROLE
732ABAC_ATTRIBUTE_INVALID_VALIDITY = _ABAC.ABAC_ATTRIBUTE_INVALID_VALIDITY
733ABAC_ATTRIBUTE_INVALID_ISSUER = _ABAC.ABAC_ATTRIBUTE_INVALID_ISSUER
734class 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)
776Context_swigregister = _ABAC.Context_swigregister
777Context_swigregister(Context)
778
779class 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)
818Role_swigregister = _ABAC.Role_swigregister
819Role_swigregister(Role)
820
821class 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)
848Credential_swigregister = _ABAC.Credential_swigregister
849Credential_swigregister(Credential)
850
851class 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)
911ID_swigregister = _ABAC.ID_swigregister
912ID_swigregister(ID)
913
914def ID_chunk(chunk):
915    val = _ABAC.new_ID_chunk(chunk)
916    return val
917
918class 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)
966Attribute_swigregister = _ABAC.Attribute_swigregister
967Attribute_swigregister(Attribute)
968
969# This file is compatible with both classic and new-style classes.
970
971
Note: See TracBrowser for help on using the repository browser.