Trees | Index | Help |
|
---|
Package twisted :: Package conch :: Package ssh :: Module userauth :: Class SSHUserAuthClient |
|
Logger
--+ |SSHService
--+ | SSHUserAuthClient
SshUserAuth
Method Summary | |
---|---|
__init__(self,
user,
instance)
| |
askForAuth(self,
kind,
extraData)
| |
auth_keyboard_interactive(self)
| |
auth_password(self)
| |
auth_publickey(self)
| |
Returns a Deferred with the responses to the
promopts. | |
Deferred
|
Return a Deferred that will be called back with a
password. |
Deferred
|
Return a Deferred that will be called back with the
private key corresponding to the last public key from getPublicKey(). |
str /None
|
Return a public key for the user. |
called when the service is active on the transport. | |
Sign the given data with the given public key blob. | |
ssh_USERAUTH_FAILURE(self,
packet)
| |
ssh_USERAUTH_PK_OK(self,
packet)
| |
ssh_USERAUTH_SUCCESS(self,
packet)
| |
tryAuth(self,
kind)
| |
_cbGenericAnswers(self,
responses)
| |
_cbPassword(self,
password)
| |
_cbSignData(self,
privateKey,
signData)
| |
_cbSignedData(self,
signedData)
| |
_ebAuth(self,
ignored,
*args)
| |
_setNewPass(self,
np)
| |
_setOldPass(self,
op)
| |
Inherited from SSHService :
logPrefix ,
packetReceived ,
serviceStopped
|
Class Variable Summary | |
---|---|
str |
name = 'ssh-userauth'
|
list |
preferredOrder = ['publickey', 'password', 'keyboard-int...
|
dict |
protocolMessages = {50: 'MSG_USERAUTH_REQUEST', 51: 'MSG...
|
Inherited from SSHService :
transport
Inherited from Logger :
__implemented__ ,
__providedBy__ ,
__provides__
|
Method Details |
---|
getGenericAnswers(self, name, instruction, prompts)Returns aDeferred with the responses to the
promopts.
|
getPassword(self, prompt=None)Return aDeferred that will be called back with a
password. prompt is a string to display for the password, or None for a
generic 'user@hostname's password: '.
|
getPrivateKey(self)Return aDeferred 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.
|
getPublicKey(self)Return a public key for the user. If no more public keys are available, return None.
|
serviceStarted(self)called when the service is active on the transport.
|
signData(self, publicKey, signData)Sign the given data with the given public key blob. By default, this will call getPrivateKey to get the private key, the sign the data using keys.signData. However, this is factored out so that it can use alternate methods, such as a key agent. |
Class Variable Details |
---|
name
|
preferredOrder
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:10 2007 | http://epydoc.sf.net |