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

Class SecurityOptions

source code

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.

Instance Methods
 
__init__(self, transport)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
Returns a string representation of this object, for debugging.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  ciphers = property(_get_ciphers, _set_ciphers, None, "Symmetri...
  digests = property(_get_digests, _set_digests, None, "Digest (...
  key_types = property(_get_key_types, _set_key_types, None, "Pu...
  kex = property(_get_kex, _set_kex, None, "Key exchange algorit...
  compression = property(_get_compression, _set_compression, Non...
Properties

Inherited from object: __class__

Method Details

__init__(self, transport)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

Returns a string representation of this object, for debugging.

Overrides: object.__repr__

Class Variable Details

ciphers

Value:
property(_get_ciphers, _set_ciphers, None, "Symmetric encryption ciphe\
rs")

digests

Value:
property(_get_digests, _set_digests, None, "Digest (one-way hash) algo\
rithms")

key_types

Value:
property(_get_key_types, _set_key_types, None, "Public-key algorithms"\
)

kex

Value:
property(_get_kex, _set_kex, None, "Key exchange algorithms")

compression

Value:
property(_get_compression, _set_compression, None, "Compression algori\
thms")