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

Class SSHTestClientAuth

   SSHService --+    
                |    
SSHUserAuthClient --+
                    |
                   SSHTestClientAuth


Method Summary
  __init__(self, user, instance)
(inherited from SSHUserAuthClient)
  askForAuth(self, kind, extraData)
(inherited from SSHUserAuthClient)
  auth_password(self)
(inherited from SSHUserAuthClient)
  auth_publickey(self)
(inherited from SSHUserAuthClient)
  getPassword(self)
Deferred getPrivateKey(self)
Return a Deferredthat will be called back with the private key corresponding to the last public key from getPublicKey().
str/None getPublicKey(self)
Return a public key for the user.
  packetReceived(self, messageType, packet)
called when we receieve a packet on the transport (inherited from SSHService)
  serviceStarted(self)
called when the service is active on the transport. (inherited from SSHUserAuthClient)
  serviceStopped(self)
called when the service is stopped, either by the connection ending or by another service being started (inherited from SSHService)
  ssh_USERAUTH_FAILURE(self, packet)
(inherited from SSHUserAuthClient)
  ssh_USERAUTH_PK_OK(self, packet)
(inherited from SSHUserAuthClient)
  ssh_USERAUTH_SUCCESS(self, packet)
  tryAuth(self, kind)
(inherited from SSHUserAuthClient)
  _cbPassword(self, password)
(inherited from SSHUserAuthClient)
  _cbPK_OK(self, privateKey)
(inherited from SSHUserAuthClient)
  _ebPK_OK(self, failure)
(inherited from SSHUserAuthClient)
  _setNewPass(self, np)
(inherited from SSHUserAuthClient)
  _setOldPass(self, op)
(inherited from SSHUserAuthClient)

Class Variable Summary
int canSucceedPassword
int canSucceedPublicKey
int hasTriedNone

Method Details

getPrivateKey(self)

Return a Deferred that will be called back with the private key corresponding to the last public key from getPublicKey(). If the private key is not available, errback on the Deferred.
Returns:
Deferred
Overrides:
twisted.conch.ssh.userauth.SSHUserAuthClient.getPrivateKey (inherited documentation)

getPublicKey(self)

Return a public key for the user. If no more public keys are available, return None.
Returns:
str/None
Overrides:
twisted.conch.ssh.userauth.SSHUserAuthClient.getPublicKey (inherited documentation)

Class Variable Details

canSucceedPassword

Type:
int
Value:
0                                                                      

canSucceedPublicKey

Type:
int
Value:
0                                                                      

hasTriedNone

Type:
int
Value:
0                                                                      

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