class documentation
class MockFactory(factory.SSHFactory): (source)
Known subclasses: twisted.conch.test.test_transport.MockOldFactoryPrivateKeys
, twisted.conch.test.test_transport.MockOldFactoryPublicKeys
A mocked-up factory based on twisted.conch.ssh.factory.SSHFactory.
Method | get |
Diffie-Hellman primes that can be used for key exchange algorithms that use group exchange to establish a prime / generator group. |
Method | get |
Return the private keys that authenticate this server. |
Method | get |
Return the public keys that authenticate this server. |
Class Variable | services |
Undocumented |
Inherited from SSHFactory
:
Method | build |
Create an instance of the server side of the SSH protocol. |
Method | get |
Return a tuple of (g, p) for a Diffe-Hellman process, with p being as close to bits bits as possible. |
Method | get |
Return a class to use as a service for the given transport. |
Method | start |
Check for public and private keys. |
Instance Variable | primes |
Undocumented |
Instance Variable | private |
Undocumented |
Instance Variable | public |
Undocumented |
Class Variable | _log |
Undocumented |
Inherited from Factory
(via SSHFactory
):
Class Method | for |
Create a factory for the given protocol. |
Method | do |
Make sure startFactory is called. |
Method | do |
Make sure stopFactory is called. |
Method | log |
Describe this factory for log messages. |
Method | stop |
This will be called before I stop listening on all Ports/Connectors. |
Class Variable | noisy |
Undocumented |
Class Variable | protocol |
Undocumented |
Instance Variable | num |
Undocumented |
Diffie-Hellman primes that can be used for key exchange algorithms that use group exchange to establish a prime / generator group.
Returns | |
dict mapping the key size to a list of (generator, prime) tuple. | The primes and generators. |