This file is indexed.

/usr/share/pyshared/arc/communication.py is in nordugrid-arc-python 4.0.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.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
if 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('_communication', [dirname(__file__)])
        except ImportError:
            from arc import _communication
            return _communication
        if fp is not None:
            try:
                _mod = imp.load_module('_communication', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _communication = swig_import_helper()
    del swig_import_helper
else:
    from arc import _communication
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
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):
        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(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    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__ = _communication.delete_SwigPyIterator
    __del__ = lambda self : None;
    def value(self): return _communication.SwigPyIterator_value(self)
    def incr(self, n=1): return _communication.SwigPyIterator_incr(self, n)
    def decr(self, n=1): return _communication.SwigPyIterator_decr(self, n)
    def distance(self, *args): return _communication.SwigPyIterator_distance(self, *args)
    def equal(self, *args): return _communication.SwigPyIterator_equal(self, *args)
    def copy(self): return _communication.SwigPyIterator_copy(self)
    def next(self): return _communication.SwigPyIterator_next(self)
    def __next__(self): return _communication.SwigPyIterator___next__(self)
    def previous(self): return _communication.SwigPyIterator_previous(self)
    def advance(self, *args): return _communication.SwigPyIterator_advance(self, *args)
    def __eq__(self, *args): return _communication.SwigPyIterator___eq__(self, *args)
    def __ne__(self, *args): return _communication.SwigPyIterator___ne__(self, *args)
    def __iadd__(self, *args): return _communication.SwigPyIterator___iadd__(self, *args)
    def __isub__(self, *args): return _communication.SwigPyIterator___isub__(self, *args)
    def __add__(self, *args): return _communication.SwigPyIterator___add__(self, *args)
    def __sub__(self, *args): return _communication.SwigPyIterator___sub__(self, *args)
    def __iter__(self): return self
SwigPyIterator_swigregister = _communication.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)

import warnings

def deprecated(method):
    """This decorator is used to mark python methods as deprecated, _not_
    functions. It will result in a warning being emmitted when the method
    is used."""
    def newMethod(*args, **kwargs):
        warnings.warn("Call to deprecated method 'arc.%s.%s'." % (args[0].__class__.__name__, method.__name__), category = DeprecationWarning, stacklevel = 2)
        return method(*args, **kwargs)
    newMethod.__name__ = method.__name__
    newMethod.__doc__ = method.__doc__
    newMethod.__dict__.update(method.__dict__)
    return newMethod

class StaticPropertyWrapper(object):
    def __init__(self, wrapped_class):
        object.__setattr__(self, "wrapped_class", wrapped_class)

    def __getattr__(self, name):
        orig_attr = getattr(self.wrapped_class, name)
        if isinstance(orig_attr, property):
            return orig_attr.fget()
        else:
            return orig_attr

    def __setattr__(self, name, value):
        orig_attr = getattr(self.wrapped_class, name)
        if isinstance(orig_attr, property):
            orig_attr.fset(value)
        else:
            setattr(self.wrapped_class, name, value)



class StringPair(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringPair, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringPair, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_StringPair(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_setmethods__["first"] = _communication.StringPair_first_set
    __swig_getmethods__["first"] = _communication.StringPair_first_get
    if _newclass:first = _swig_property(_communication.StringPair_first_get, _communication.StringPair_first_set)
    __swig_setmethods__["second"] = _communication.StringPair_second_set
    __swig_getmethods__["second"] = _communication.StringPair_second_get
    if _newclass:second = _swig_property(_communication.StringPair_second_get, _communication.StringPair_second_set)
    def __len__(self): return 2
    def __repr__(self): return str((self.first, self.second))
    def __getitem__(self, index): 
      if not (index % 2): 
        return self.first
      else:
        return self.second
    def __setitem__(self, index, val):
      if not (index % 2): 
        self.first = val
      else:
        self.second = val
    __swig_destroy__ = _communication.delete_StringPair
    __del__ = lambda self : None;
StringPair_swigregister = _communication.StringPair_swigregister
StringPair_swigregister(StringPair)

class StringList(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringList, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringList, name)
    __repr__ = _swig_repr
    def iterator(self): return _communication.StringList_iterator(self)
    def __iter__(self): return self.iterator()
    def __nonzero__(self): return _communication.StringList___nonzero__(self)
    def __bool__(self): return _communication.StringList___bool__(self)
    def __len__(self): return _communication.StringList___len__(self)
    def pop(self): return _communication.StringList_pop(self)
    def __getslice__(self, *args): return _communication.StringList___getslice__(self, *args)
    def __setslice__(self, *args): return _communication.StringList___setslice__(self, *args)
    def __delslice__(self, *args): return _communication.StringList___delslice__(self, *args)
    def __delitem__(self, *args): return _communication.StringList___delitem__(self, *args)
    def __getitem__(self, *args): return _communication.StringList___getitem__(self, *args)
    def __setitem__(self, *args): return _communication.StringList___setitem__(self, *args)
    def append(self, *args): return _communication.StringList_append(self, *args)
    def empty(self): return _communication.StringList_empty(self)
    def size(self): return _communication.StringList_size(self)
    def clear(self): return _communication.StringList_clear(self)
    def swap(self, *args): return _communication.StringList_swap(self, *args)
    def get_allocator(self): return _communication.StringList_get_allocator(self)
    def begin(self): return _communication.StringList_begin(self)
    def end(self): return _communication.StringList_end(self)
    def rbegin(self): return _communication.StringList_rbegin(self)
    def rend(self): return _communication.StringList_rend(self)
    def pop_back(self): return _communication.StringList_pop_back(self)
    def erase(self, *args): return _communication.StringList_erase(self, *args)
    def __init__(self, *args): 
        this = _communication.new_StringList(*args)
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _communication.StringList_push_back(self, *args)
    def front(self): return _communication.StringList_front(self)
    def back(self): return _communication.StringList_back(self)
    def assign(self, *args): return _communication.StringList_assign(self, *args)
    def resize(self, *args): return _communication.StringList_resize(self, *args)
    def insert(self, *args): return _communication.StringList_insert(self, *args)
    def pop_front(self): return _communication.StringList_pop_front(self)
    def push_front(self, *args): return _communication.StringList_push_front(self, *args)
    def reverse(self): return _communication.StringList_reverse(self)
    __swig_destroy__ = _communication.delete_StringList
    __del__ = lambda self : None;
StringList_swigregister = _communication.StringList_swigregister
StringList_swigregister(StringList)

class StringSet(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringSet, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringSet, name)
    __repr__ = _swig_repr
    def iterator(self): return _communication.StringSet_iterator(self)
    def __iter__(self): return self.iterator()
    def __nonzero__(self): return _communication.StringSet___nonzero__(self)
    def __bool__(self): return _communication.StringSet___bool__(self)
    def __len__(self): return _communication.StringSet___len__(self)
    def append(self, *args): return _communication.StringSet_append(self, *args)
    def __contains__(self, *args): return _communication.StringSet___contains__(self, *args)
    def __getitem__(self, *args): return _communication.StringSet___getitem__(self, *args)
    def add(self, *args): return _communication.StringSet_add(self, *args)
    def discard(self, *args): return _communication.StringSet_discard(self, *args)
    def __init__(self, *args): 
        this = _communication.new_StringSet(*args)
        try: self.this.append(this)
        except: self.this = this
    def empty(self): return _communication.StringSet_empty(self)
    def size(self): return _communication.StringSet_size(self)
    def clear(self): return _communication.StringSet_clear(self)
    def swap(self, *args): return _communication.StringSet_swap(self, *args)
    def count(self, *args): return _communication.StringSet_count(self, *args)
    def begin(self): return _communication.StringSet_begin(self)
    def end(self): return _communication.StringSet_end(self)
    def rbegin(self): return _communication.StringSet_rbegin(self)
    def rend(self): return _communication.StringSet_rend(self)
    def erase(self, *args): return _communication.StringSet_erase(self, *args)
    def find(self, *args): return _communication.StringSet_find(self, *args)
    def lower_bound(self, *args): return _communication.StringSet_lower_bound(self, *args)
    def upper_bound(self, *args): return _communication.StringSet_upper_bound(self, *args)
    def equal_range(self, *args): return _communication.StringSet_equal_range(self, *args)
    def insert(self, *args): return _communication.StringSet_insert(self, *args)
    __swig_destroy__ = _communication.delete_StringSet
    __del__ = lambda self : None;
StringSet_swigregister = _communication.StringSet_swigregister
StringSet_swigregister(StringSet)

class StringVector(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringVector, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringVector, name)
    __repr__ = _swig_repr
    def iterator(self): return _communication.StringVector_iterator(self)
    def __iter__(self): return self.iterator()
    def __nonzero__(self): return _communication.StringVector___nonzero__(self)
    def __bool__(self): return _communication.StringVector___bool__(self)
    def __len__(self): return _communication.StringVector___len__(self)
    def pop(self): return _communication.StringVector_pop(self)
    def __getslice__(self, *args): return _communication.StringVector___getslice__(self, *args)
    def __setslice__(self, *args): return _communication.StringVector___setslice__(self, *args)
    def __delslice__(self, *args): return _communication.StringVector___delslice__(self, *args)
    def __delitem__(self, *args): return _communication.StringVector___delitem__(self, *args)
    def __getitem__(self, *args): return _communication.StringVector___getitem__(self, *args)
    def __setitem__(self, *args): return _communication.StringVector___setitem__(self, *args)
    def append(self, *args): return _communication.StringVector_append(self, *args)
    def empty(self): return _communication.StringVector_empty(self)
    def size(self): return _communication.StringVector_size(self)
    def clear(self): return _communication.StringVector_clear(self)
    def swap(self, *args): return _communication.StringVector_swap(self, *args)
    def get_allocator(self): return _communication.StringVector_get_allocator(self)
    def begin(self): return _communication.StringVector_begin(self)
    def end(self): return _communication.StringVector_end(self)
    def rbegin(self): return _communication.StringVector_rbegin(self)
    def rend(self): return _communication.StringVector_rend(self)
    def pop_back(self): return _communication.StringVector_pop_back(self)
    def erase(self, *args): return _communication.StringVector_erase(self, *args)
    def __init__(self, *args): 
        this = _communication.new_StringVector(*args)
        try: self.this.append(this)
        except: self.this = this
    def push_back(self, *args): return _communication.StringVector_push_back(self, *args)
    def front(self): return _communication.StringVector_front(self)
    def back(self): return _communication.StringVector_back(self)
    def assign(self, *args): return _communication.StringVector_assign(self, *args)
    def resize(self, *args): return _communication.StringVector_resize(self, *args)
    def insert(self, *args): return _communication.StringVector_insert(self, *args)
    def reserve(self, *args): return _communication.StringVector_reserve(self, *args)
    def capacity(self): return _communication.StringVector_capacity(self)
    __swig_destroy__ = _communication.delete_StringVector
    __del__ = lambda self : None;
StringVector_swigregister = _communication.StringVector_swigregister
StringVector_swigregister(StringVector)

class StringStringMap(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringStringMap, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringStringMap, name)
    __repr__ = _swig_repr
    def iterator(self): return _communication.StringStringMap_iterator(self)
    def __iter__(self): return self.iterator()
    def __nonzero__(self): return _communication.StringStringMap___nonzero__(self)
    def __bool__(self): return _communication.StringStringMap___bool__(self)
    def __len__(self): return _communication.StringStringMap___len__(self)
    def __iter__(self): return self.key_iterator()
    def iterkeys(self): return self.key_iterator()
    def itervalues(self): return self.value_iterator()
    def iteritems(self): return self.iterator()
    def __getitem__(self, *args): return _communication.StringStringMap___getitem__(self, *args)
    def __delitem__(self, *args): return _communication.StringStringMap___delitem__(self, *args)
    def has_key(self, *args): return _communication.StringStringMap_has_key(self, *args)
    def keys(self): return _communication.StringStringMap_keys(self)
    def values(self): return _communication.StringStringMap_values(self)
    def items(self): return _communication.StringStringMap_items(self)
    def __contains__(self, *args): return _communication.StringStringMap___contains__(self, *args)
    def key_iterator(self): return _communication.StringStringMap_key_iterator(self)
    def value_iterator(self): return _communication.StringStringMap_value_iterator(self)
    def __setitem__(self, *args): return _communication.StringStringMap___setitem__(self, *args)
    def asdict(self): return _communication.StringStringMap_asdict(self)
    def __init__(self, *args): 
        this = _communication.new_StringStringMap(*args)
        try: self.this.append(this)
        except: self.this = this
    def empty(self): return _communication.StringStringMap_empty(self)
    def size(self): return _communication.StringStringMap_size(self)
    def clear(self): return _communication.StringStringMap_clear(self)
    def swap(self, *args): return _communication.StringStringMap_swap(self, *args)
    def get_allocator(self): return _communication.StringStringMap_get_allocator(self)
    def begin(self): return _communication.StringStringMap_begin(self)
    def end(self): return _communication.StringStringMap_end(self)
    def rbegin(self): return _communication.StringStringMap_rbegin(self)
    def rend(self): return _communication.StringStringMap_rend(self)
    def count(self, *args): return _communication.StringStringMap_count(self, *args)
    def erase(self, *args): return _communication.StringStringMap_erase(self, *args)
    def find(self, *args): return _communication.StringStringMap_find(self, *args)
    def lower_bound(self, *args): return _communication.StringStringMap_lower_bound(self, *args)
    def upper_bound(self, *args): return _communication.StringStringMap_upper_bound(self, *args)
    __swig_destroy__ = _communication.delete_StringStringMap
    __del__ = lambda self : None;
StringStringMap_swigregister = _communication.StringStringMap_swigregister
StringStringMap_swigregister(StringStringMap)

class StringDoubleMap(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, StringDoubleMap, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, StringDoubleMap, name)
    __repr__ = _swig_repr
    def iterator(self): return _communication.StringDoubleMap_iterator(self)
    def __iter__(self): return self.iterator()
    def __nonzero__(self): return _communication.StringDoubleMap___nonzero__(self)
    def __bool__(self): return _communication.StringDoubleMap___bool__(self)
    def __len__(self): return _communication.StringDoubleMap___len__(self)
    def __iter__(self): return self.key_iterator()
    def iterkeys(self): return self.key_iterator()
    def itervalues(self): return self.value_iterator()
    def iteritems(self): return self.iterator()
    def __getitem__(self, *args): return _communication.StringDoubleMap___getitem__(self, *args)
    def __delitem__(self, *args): return _communication.StringDoubleMap___delitem__(self, *args)
    def has_key(self, *args): return _communication.StringDoubleMap_has_key(self, *args)
    def keys(self): return _communication.StringDoubleMap_keys(self)
    def values(self): return _communication.StringDoubleMap_values(self)
    def items(self): return _communication.StringDoubleMap_items(self)
    def __contains__(self, *args): return _communication.StringDoubleMap___contains__(self, *args)
    def key_iterator(self): return _communication.StringDoubleMap_key_iterator(self)
    def value_iterator(self): return _communication.StringDoubleMap_value_iterator(self)
    def __setitem__(self, *args): return _communication.StringDoubleMap___setitem__(self, *args)
    def asdict(self): return _communication.StringDoubleMap_asdict(self)
    def __init__(self, *args): 
        this = _communication.new_StringDoubleMap(*args)
        try: self.this.append(this)
        except: self.this = this
    def empty(self): return _communication.StringDoubleMap_empty(self)
    def size(self): return _communication.StringDoubleMap_size(self)
    def clear(self): return _communication.StringDoubleMap_clear(self)
    def swap(self, *args): return _communication.StringDoubleMap_swap(self, *args)
    def get_allocator(self): return _communication.StringDoubleMap_get_allocator(self)
    def begin(self): return _communication.StringDoubleMap_begin(self)
    def end(self): return _communication.StringDoubleMap_end(self)
    def rbegin(self): return _communication.StringDoubleMap_rbegin(self)
    def rend(self): return _communication.StringDoubleMap_rend(self)
    def count(self, *args): return _communication.StringDoubleMap_count(self, *args)
    def erase(self, *args): return _communication.StringDoubleMap_erase(self, *args)
    def find(self, *args): return _communication.StringDoubleMap_find(self, *args)
    def lower_bound(self, *args): return _communication.StringDoubleMap_lower_bound(self, *args)
    def upper_bound(self, *args): return _communication.StringDoubleMap_upper_bound(self, *args)
    __swig_destroy__ = _communication.delete_StringDoubleMap
    __del__ = lambda self : None;
StringDoubleMap_swigregister = _communication.StringDoubleMap_swigregister
StringDoubleMap_swigregister(StringDoubleMap)

from arc import common
class ClientInterface(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientInterface, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ClientInterface, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ClientInterface(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_ClientInterface
    __del__ = lambda self : None;
    def Overlay(self, *args): return _communication.ClientInterface_Overlay(self, *args)
    def GetConfig(self): return _communication.ClientInterface_GetConfig(self)
    def GetContext(self): return _communication.ClientInterface_GetContext(self)
    def Load(self): return _communication.ClientInterface_Load(self)
ClientInterface_swigregister = _communication.ClientInterface_swigregister
ClientInterface_swigregister(ClientInterface)

NoSec = _communication.NoSec
TLSSec = _communication.TLSSec
GSISec = _communication.GSISec
SSL3Sec = _communication.SSL3Sec
GSIIOSec = _communication.GSIIOSec
NoEnc = _communication.NoEnc
RequireEnc = _communication.RequireEnc
PreferEnc = _communication.PreferEnc
OptionalEnc = _communication.OptionalEnc
class TCPSec(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, TCPSec, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, TCPSec, name)
    __repr__ = _swig_repr
    __swig_setmethods__["sec"] = _communication.TCPSec_sec_set
    __swig_getmethods__["sec"] = _communication.TCPSec_sec_get
    if _newclass:sec = _swig_property(_communication.TCPSec_sec_get, _communication.TCPSec_sec_set)
    __swig_setmethods__["enc"] = _communication.TCPSec_enc_set
    __swig_getmethods__["enc"] = _communication.TCPSec_enc_get
    if _newclass:enc = _swig_property(_communication.TCPSec_enc_get, _communication.TCPSec_enc_set)
    def __init__(self, *args): 
        this = _communication.new_TCPSec(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_TCPSec
    __del__ = lambda self : None;
TCPSec_swigregister = _communication.TCPSec_swigregister
TCPSec_swigregister(TCPSec)

class ClientTCP(ClientInterface):
    __swig_setmethods__ = {}
    for _s in [ClientInterface]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientTCP, name, value)
    __swig_getmethods__ = {}
    for _s in [ClientInterface]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ClientTCP, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ClientTCP(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_ClientTCP
    __del__ = lambda self : None;
    def process(self, *args): return _communication.ClientTCP_process(self, *args)
    def GetEntry(self): return _communication.ClientTCP_GetEntry(self)
    def Load(self): return _communication.ClientTCP_Load(self)
    def AddSecHandler(self, *args): return _communication.ClientTCP_AddSecHandler(self, *args)
ClientTCP_swigregister = _communication.ClientTCP_swigregister
ClientTCP_swigregister(ClientTCP)

class HTTPClientInfo(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, HTTPClientInfo, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, HTTPClientInfo, name)
    __repr__ = _swig_repr
    __swig_setmethods__["code"] = _communication.HTTPClientInfo_code_set
    __swig_getmethods__["code"] = _communication.HTTPClientInfo_code_get
    if _newclass:code = _swig_property(_communication.HTTPClientInfo_code_get, _communication.HTTPClientInfo_code_set)
    __swig_setmethods__["reason"] = _communication.HTTPClientInfo_reason_set
    __swig_getmethods__["reason"] = _communication.HTTPClientInfo_reason_get
    if _newclass:reason = _swig_property(_communication.HTTPClientInfo_reason_get, _communication.HTTPClientInfo_reason_set)
    __swig_setmethods__["size"] = _communication.HTTPClientInfo_size_set
    __swig_getmethods__["size"] = _communication.HTTPClientInfo_size_get
    if _newclass:size = _swig_property(_communication.HTTPClientInfo_size_get, _communication.HTTPClientInfo_size_set)
    __swig_setmethods__["lastModified"] = _communication.HTTPClientInfo_lastModified_set
    __swig_getmethods__["lastModified"] = _communication.HTTPClientInfo_lastModified_get
    if _newclass:lastModified = _swig_property(_communication.HTTPClientInfo_lastModified_get, _communication.HTTPClientInfo_lastModified_set)
    __swig_setmethods__["type"] = _communication.HTTPClientInfo_type_set
    __swig_getmethods__["type"] = _communication.HTTPClientInfo_type_get
    if _newclass:type = _swig_property(_communication.HTTPClientInfo_type_get, _communication.HTTPClientInfo_type_set)
    __swig_setmethods__["cookies"] = _communication.HTTPClientInfo_cookies_set
    __swig_getmethods__["cookies"] = _communication.HTTPClientInfo_cookies_get
    if _newclass:cookies = _swig_property(_communication.HTTPClientInfo_cookies_get, _communication.HTTPClientInfo_cookies_set)
    __swig_setmethods__["location"] = _communication.HTTPClientInfo_location_set
    __swig_getmethods__["location"] = _communication.HTTPClientInfo_location_get
    if _newclass:location = _swig_property(_communication.HTTPClientInfo_location_get, _communication.HTTPClientInfo_location_set)
    def __init__(self): 
        this = _communication.new_HTTPClientInfo()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_HTTPClientInfo
    __del__ = lambda self : None;
HTTPClientInfo_swigregister = _communication.HTTPClientInfo_swigregister
HTTPClientInfo_swigregister(HTTPClientInfo)

class ClientHTTPAttributes(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientHTTPAttributes, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ClientHTTPAttributes, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ClientHTTPAttributes(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_ClientHTTPAttributes
    __del__ = lambda self : None;
ClientHTTPAttributes_swigregister = _communication.ClientHTTPAttributes_swigregister
ClientHTTPAttributes_swigregister(ClientHTTPAttributes)

class ClientHTTP(ClientTCP):
    __swig_setmethods__ = {}
    for _s in [ClientTCP]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientHTTP, name, value)
    __swig_getmethods__ = {}
    for _s in [ClientTCP]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ClientHTTP, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ClientHTTP(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_ClientHTTP
    __del__ = lambda self : None;
    def process(self, *args): return _communication.ClientHTTP_process(self, *args)
    def GetEntry(self): return _communication.ClientHTTP_GetEntry(self)
    def AddSecHandler(self, *args): return _communication.ClientHTTP_AddSecHandler(self, *args)
    def Load(self): return _communication.ClientHTTP_Load(self)
    def RelativeURI(self, *args): return _communication.ClientHTTP_RelativeURI(self, *args)
    def GetURL(self): return _communication.ClientHTTP_GetURL(self)
ClientHTTP_swigregister = _communication.ClientHTTP_swigregister
ClientHTTP_swigregister(ClientHTTP)

class ClientSOAP(ClientHTTP):
    __swig_setmethods__ = {}
    for _s in [ClientHTTP]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientSOAP, name, value)
    __swig_getmethods__ = {}
    for _s in [ClientHTTP]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ClientSOAP, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ClientSOAP(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_ClientSOAP
    __del__ = lambda self : None;
    def process(self, *args): return _communication.ClientSOAP_process(self, *args)
    def GetEntry(self): return _communication.ClientSOAP_GetEntry(self)
    def AddSecHandler(self, *args): return _communication.ClientSOAP_AddSecHandler(self, *args)
    def Load(self): return _communication.ClientSOAP_Load(self)
ClientSOAP_swigregister = _communication.ClientSOAP_swigregister
ClientSOAP_swigregister(ClientSOAP)

class SecHandlerConfig(common.XMLNode):
    __swig_setmethods__ = {}
    for _s in [common.XMLNode]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, SecHandlerConfig, name, value)
    __swig_getmethods__ = {}
    for _s in [common.XMLNode]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, SecHandlerConfig, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_SecHandlerConfig(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_SecHandlerConfig
    __del__ = lambda self : None;
SecHandlerConfig_swigregister = _communication.SecHandlerConfig_swigregister
SecHandlerConfig_swigregister(SecHandlerConfig)

class DNListHandlerConfig(SecHandlerConfig):
    __swig_setmethods__ = {}
    for _s in [SecHandlerConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, DNListHandlerConfig, name, value)
    __swig_getmethods__ = {}
    for _s in [SecHandlerConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, DNListHandlerConfig, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_DNListHandlerConfig(*args)
        try: self.this.append(this)
        except: self.this = this
    def AddDN(self, *args): return _communication.DNListHandlerConfig_AddDN(self, *args)
    __swig_destroy__ = _communication.delete_DNListHandlerConfig
    __del__ = lambda self : None;
DNListHandlerConfig_swigregister = _communication.DNListHandlerConfig_swigregister
DNListHandlerConfig_swigregister(DNListHandlerConfig)

class ARCPolicyHandlerConfig(SecHandlerConfig):
    __swig_setmethods__ = {}
    for _s in [SecHandlerConfig]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ARCPolicyHandlerConfig, name, value)
    __swig_getmethods__ = {}
    for _s in [SecHandlerConfig]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ARCPolicyHandlerConfig, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ARCPolicyHandlerConfig(*args)
        try: self.this.append(this)
        except: self.this = this
    def AddPolicy(self, *args): return _communication.ARCPolicyHandlerConfig_AddPolicy(self, *args)
    __swig_destroy__ = _communication.delete_ARCPolicyHandlerConfig
    __del__ = lambda self : None;
ARCPolicyHandlerConfig_swigregister = _communication.ARCPolicyHandlerConfig_swigregister
ARCPolicyHandlerConfig_swigregister(ARCPolicyHandlerConfig)

DELEG_ARC = _communication.DELEG_ARC
DELEG_GRIDSITE = _communication.DELEG_GRIDSITE
DELEG_GT4 = _communication.DELEG_GT4
DELEG_MYPROXY = _communication.DELEG_MYPROXY
DELEG_UNKNOWN = _communication.DELEG_UNKNOWN
class ClientX509Delegation(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ClientX509Delegation, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ClientX509Delegation, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _communication.new_ClientX509Delegation(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _communication.delete_ClientX509Delegation
    __del__ = lambda self : None;
    def createDelegation(self, *args): return _communication.ClientX509Delegation_createDelegation(self, *args)
    def destroyDelegation(self, *args): return _communication.ClientX509Delegation_destroyDelegation(self, *args)
    def acquireDelegation(self, *args): return _communication.ClientX509Delegation_acquireDelegation(self, *args)
ClientX509Delegation_swigregister = _communication.ClientX509Delegation_swigregister
ClientX509Delegation_swigregister(ClientX509Delegation)

# This file is compatible with both classic and new-style classes.