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__

Properties
  ciphers
Symmetric encryption ciphers
  digests
Digest (one-way hash) algorithms
  key_types
Public-key algorithms
  kex
Key exchange algorithms
  compression
Compression algorithms

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__

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)

key_types

Public-key algorithms

Get Method:
_get_key_types(self)
Set Method:
_set_key_types(self, x)

kex

Key exchange algorithms

Get Method:
_get_kex(self)
Set Method:
_set_kex(self, x)

compression

Compression algorithms

Get Method:
_get_compression(self)
Set Method:
_set_compression(self, x)