|
reSIProcate/repro
9694
|
#include <ReproServerAuthManager.hxx>


Public Member Functions | |
| ReproServerAuthManager (resip::DialogUsageManager &dum, Dispatcher *authRequestDispatcher, AclStore &aclDb, bool useAuthInt, bool rejectBadNonces) | |
| ~ReproServerAuthManager () | |
Protected Member Functions | |
| virtual void | requestCredential (const resip::Data &user, const resip::Data &realm, const resip::SipMessage &msg, const resip::Auth &auth, const resip::Data &transactionId) |
| virtual bool | useAuthInt () const |
| virtual bool | rejectBadNonces () const |
| virtual AsyncBool | requiresChallenge (const resip::SipMessage &msg) |
Private Attributes | |
| resip::DialogUsageManager & | mDum |
| Dispatcher * | mAuthRequestDispatcher |
| AclStore & | mAclDb |
| bool | mUseAuthInt |
| bool | mRejectBadNonces |
Definition at line 22 of file ReproServerAuthManager.hxx.
| ReproServerAuthManager::ReproServerAuthManager | ( | resip::DialogUsageManager & | dum, |
| Dispatcher * | authRequestDispatcher, | ||
| AclStore & | aclDb, | ||
| bool | useAuthInt, | ||
| bool | rejectBadNonces | ||
| ) |
Definition at line 16 of file ReproServerAuthManager.cxx.
: ServerAuthManager(dum, dum.dumIncomingTarget()), mDum(dum), mAuthRequestDispatcher(authRequestDispatcher), mAclDb(aclDb), mUseAuthInt(useAuthInt), mRejectBadNonces(rejectBadNonces) { }
| ReproServerAuthManager::~ReproServerAuthManager | ( | ) |
Definition at line 30 of file ReproServerAuthManager.cxx.
{
}
| bool ReproServerAuthManager::rejectBadNonces | ( | ) | const [protected, virtual] |
Reimplemented from resip::ServerAuthManager.
Definition at line 41 of file ReproServerAuthManager.cxx.
{
return mRejectBadNonces;
}
| void ReproServerAuthManager::requestCredential | ( | const resip::Data & | user, |
| const resip::Data & | realm, | ||
| const resip::SipMessage & | msg, | ||
| const resip::Auth & | auth, | ||
| const resip::Data & | transactionId | ||
| ) | [protected, virtual] |
Implements resip::ServerAuthManager.
Definition at line 61 of file ReproServerAuthManager.cxx.
{
// Build a UserAuthInfo object and pass to UserAuthGrabber to have a1 password filled in
UserAuthInfo* async = new UserAuthInfo(user,realm,transactionId,&mDum);
std::auto_ptr<ApplicationMessage> app(async);
mAuthRequestDispatcher->post(app);
}
| ServerAuthManager::AsyncBool ReproServerAuthManager::requiresChallenge | ( | const resip::SipMessage & | msg | ) | [protected, virtual] |
Reimplemented from resip::ServerAuthManager.
Definition at line 47 of file ReproServerAuthManager.cxx.
{
assert(msg.isRequest());
if(!mAclDb.isRequestTrusted(msg))
{
return True;
}
else
{
return False;
}
}
| bool ReproServerAuthManager::useAuthInt | ( | ) | const [protected, virtual] |
Reimplemented from resip::ServerAuthManager.
Definition at line 35 of file ReproServerAuthManager.cxx.
{
return mUseAuthInt;
}
AclStore& repro::ReproServerAuthManager::mAclDb [private] |
Definition at line 48 of file ReproServerAuthManager.hxx.
Definition at line 47 of file ReproServerAuthManager.hxx.
Reimplemented from resip::DumFeature.
Definition at line 46 of file ReproServerAuthManager.hxx.
bool repro::ReproServerAuthManager::mRejectBadNonces [private] |
Definition at line 50 of file ReproServerAuthManager.hxx.
bool repro::ReproServerAuthManager::mUseAuthInt [private] |
Definition at line 49 of file ReproServerAuthManager.hxx.
1.7.5.1