Package paramiko :: Module transport :: Class SecurityOptions
[show private | hide private]
[frames | no frames]

Class SecurityOptions

object --+
         |
        SecurityOptions


Simple object containing the security preferences of an ssh transport. These are tuples of acceptable ciphers, digests, key types, and key exchange algorithms, listed in order of preference.

Changing the contents and/or order of these fields affects the underlying Transport (but only if you change them before starting the session). If you try to add an algorithm that paramiko doesn't recognize, ValueError will be raised. If you try to assign something besides a tuple to one of the fields, TypeError will be raised.

Since: ivysaur

Method Summary
  __init__(self, transport)
str __repr__(self)
Returns a string representation of this object, for debugging.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Property Summary
  ciphers: Symmetric encryption ciphers
  digests: Digest (one-way hash) algorithms
  kex: Key exchange algorithms
  key_types: Public-key algorithms

Class Variable Summary
list __slots__ = ['ciphers', 'digests', 'key_types', 'kex', '...

Method Details

__repr__(self)
(Representation operator)

Returns a string representation of this object, for debugging.
Returns:
str
Overrides:
__builtin__.object.__repr__

Property Details

ciphers

Symmetric encryption ciphers
Get Method:
_get_ciphers(self)
Set Method:
_set_ciphers(self, x)

digests

Digest (one-way hash) algorithms
Get Method:
_get_digests(self)
Set Method:
_set_digests(self, x)

kex

Key exchange algorithms
Get Method:
_get_kex(self)
Set Method:
_set_kex(self, x)

key_types

Public-key algorithms
Get Method:
_get_key_types(self)
Set Method:
_set_key_types(self, x)

Class Variable Details

__slots__

Type:
list
Value:
['ciphers', 'digests', 'key_types', 'kex', '_transport']               

Generated by Epydoc 2.0 on Mon Feb 28 00:10:19 2005 http://epydoc.sf.net