Package twisted :: Package test :: Module test_conch :: Class SSHTestFactory
[show private | hide private]
[frames | no frames]

Class SSHTestFactory

Factory --+    
          |    
 SSHFactory --+
              |
             SSHTestFactory


Method Summary
  buildProtocol(self, addr)
Create an instance of a subclass of Protocol.
  doStart(self)
Make sure startFactory is called. (inherited from Factory)
  doStop(self)
Make sure stopFactory is called. (inherited from Factory)
tuple getDHPrime(self, bits)
Return a tuple of (g, p) for a Diffe-Hellman process, with p being as close to bits bits as possible. (inherited from SSHFactory)
dict getPrimes(self)
Called when the factory is started to get Diffie-Hellman generators and primes to use.
dict getPrivateKeys(self)
Called when the factory is started to get the private portions of the servers host keys.
dict getPublicKeys(self)
Called when the factory is started to get the public portions of the servers host keys.
  getService(self, trans, name)
  startFactory(self)
This will be called before I begin listening on a Port or Connector. (inherited from SSHFactory)
  stopFactory(self)
This will be called before I stop listening on all Ports/Connectors. (inherited from Factory)

Class Variable Summary
int noisy
dict services

Method Details

buildProtocol(self, addr)

Create an instance of a subclass of Protocol.

The returned instance will handle input on an incoming server connection, and an attribute "factory" pointing to the creating factory.

Override this method to alter how Protocol instances get created.
Overrides:
twisted.conch.ssh.factory.SSHFactory.buildProtocol (inherited documentation)

getPrimes(self)

Called when the factory is started to get Diffie-Hellman generators and primes to use. Returns a dictionary mapping number of bits to lists of tuple of (generator, prime).
Returns:
dict
Overrides:
twisted.conch.ssh.factory.SSHFactory.getPrimes (inherited documentation)

getPrivateKeys(self)

Called when the factory is started to get the private portions of the servers host keys. Returns a dictionary mapping SSH key types to Crypto.PublicKey.pubkey.pubkey objects.
Returns:
dict
Overrides:
twisted.conch.ssh.factory.SSHFactory.getPrivateKeys (inherited documentation)

getPublicKeys(self)

Called when the factory is started to get the public portions of the servers host keys. Returns a dictionary mapping SSH key types to public key strings.
Returns:
dict
Overrides:
twisted.conch.ssh.factory.SSHFactory.getPublicKeys (inherited documentation)

Class Variable Details

noisy

Type:
int
Value:
0                                                                      

services

Type:
dict
Value:
{'ssh-connection': <class twisted.test.test_conch.SSHTestServerConnect\
ion at 0x109cc008>,
 'ssh-userauth': <class twisted.test.test_conch.SSHTestServerAuth at 0\
x109b07d0>}                                                            

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:55 2003 http://epydoc.sf.net