paramiko.SecurityOptions

Package paramiko :: 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 x.__class__.__doc__ for signature | source code
str |
__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
| compression Compression algorithms
| digests Digest (one-way hash) algorithms
| kex Key exchange algorithms
| key_types Public-key algorithms
Inherited from `object`: `__class__`

Method Details

### __init__(self, transport) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
Returns a string representation of this object, for debugging. Returns: str Overrides: object.__repr__

Property Details

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

### compression Compression algorithms Get Method: _get_compression(self) Set Method: _set_compression(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)