reSIProcate/repro  9694
Public Member Functions | Protected Member Functions | Private Attributes
repro::ReproServerAuthManager Class Reference

#include <ReproServerAuthManager.hxx>

Inheritance diagram for repro::ReproServerAuthManager:
Inheritance graph
[legend]
Collaboration diagram for repro::ReproServerAuthManager:
Collaboration graph
[legend]

List of all members.

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::DialogUsageManagermDum
DispatchermAuthRequestDispatcher
AclStoremAclDb
bool mUseAuthInt
bool mRejectBadNonces

Detailed Description

Definition at line 22 of file ReproServerAuthManager.hxx.


Constructor & Destructor Documentation

ReproServerAuthManager::ReproServerAuthManager ( resip::DialogUsageManager dum,
Dispatcher authRequestDispatcher,
AclStore aclDb,
bool  useAuthInt,
bool  rejectBadNonces 
)

Definition at line 16 of file ReproServerAuthManager.cxx.

ReproServerAuthManager::~ReproServerAuthManager ( )

Definition at line 30 of file ReproServerAuthManager.cxx.

{
}

Member Function Documentation

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;
}

Member Data Documentation

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.

Definition at line 50 of file ReproServerAuthManager.hxx.

Definition at line 49 of file ReproServerAuthManager.hxx.


The documentation for this class was generated from the following files: