4Suite
™
API Documentation
►
Module
Ft
.
Server
.
Common
.ClAuthenticate
######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Server/Common/ClAuthenticate.py,v 1.8 2004/09/03 17:11:20 mbrown Exp $
Classes:
Error
,
FtServerAuthenticationException
,
PasswordFileManager
Functions:
GetHostName
,
GetPass
,
GetPort
,
GetUserName
,
HashPasswd
,
UserAuthenticate
Classes
class
Error
Fields
INTERNAL_ERROR
= 1
PASSWDFILE_UNDEFINED
= 10
class
FtServerAuthenticationException
(
Ft.Server.FtServerBaseException
)
Methods inherited from class
Ft.Server.FtServerBaseException
__init__
Methods inherited from class
Ft.FtException
__getattr__
,
__repr__
,
__str__
Methods inherited from class
exceptions.Exception
__getitem__
Fields
MessageSource
= <module 'Ft.Server.Common.MessageSource' from 'b...linux-ppc-2.4/Ft/Server/Common/MessageSource.py'>
class
PasswordFileManager
Methods
__init__
(
self
)
getUserEntry
(
self
,
userName
)
setUserEntry
(
self
,
userName
,
passwdHash
,
hostName
,
port
)
Functions
GetHostName
(
prompt
='Host: '
)
GetPass
(
prompt
='Password: '
)
GetPort
(
prompt
='Port: '
)
GetUserName
(
prompt
='Username: '
,
emptyOK
=True
)
HashPasswd
(
passwd
)
UserAuthenticate
(
options
=None
,
prompt
='User'
,
promptOnly
=0
)