reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
repro::ReproServerAuthManager Class Reference

#include <ReproServerAuthManager.hxx>

Inheritance diagram for repro::ReproServerAuthManager:
[legend]

Public Member Functions

 ReproServerAuthManager (resip::DialogUsageManager &dum, resip::Dispatcher *authRequestDispatcher, AclStore &aclDb, bool useAuthInt, bool rejectBadNonces, bool challengeThirdParties, const resip::Data &staticRealm=resip::Data::Empty, const std::vector< resip::DigestType > &challengeDigestTypes=std::vector< resip::DigestType >())
 
 ~ReproServerAuthManager ()
 
- Public Member Functions inherited from resip::ServerAuthManager
 ServerAuthManager (DialogUsageManager &dum, TargetCommand::Target &target, bool challengeThirdParties=true, const resip::Data &staticRealm="", const std::vector< DigestType > &challengeDigestTypes=std::vector< DigestType >())
 
virtual ~ServerAuthManager ()
 
virtual ProcessingResult process (Message *msg)
 
virtual SipMessage * handleUserAuthInfo (UserAuthInfo *auth)
 
virtual Result handle (SipMessage *sipMsg)
 
- Public Member Functions inherited from resip::DumFeature
 DumFeature (DialogUsageManager &dum, TargetCommand::Target &target)
 
virtual ~DumFeature ()
 
virtual void postCommand (std::unique_ptr< Message > message)
 

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 resip::AsyncBool requiresChallenge (const resip::SipMessage &msg)
 should return true if the request must be challenged The default is to challenge all requests - override this class to change this beviour
 
- Protected Member Functions inherited from resip::ServerAuthManager
virtual bool proxyAuthenticationMode () const
 
virtual bool authorizedForThisIdentity (const resip::Data &user, const resip::Data &realm, resip::Uri &fromUri)
 should return true if the passed in user is authorized for the provided uri
 
virtual const Data & getChallengeRealm (const SipMessage &msg)
 returns the realm to be used for the challenge
 
virtual bool isMyRealm (const Data &realm)
 should return true if realm passed in is ours and we can challenge
 
Result issueChallengeIfRequired (SipMessage *sipMsg)
 
void issueChallenge (SipMessage *sipMsg, bool stale=false)
 
virtual void onAuthSuccess (const SipMessage &msg)
 
virtual void onAuthFailure (AuthFailureReason reason, const SipMessage &msg)
 

Additional Inherited Members

- Public Types inherited from resip::ServerAuthManager
enum  Result {
  RequestedInfo , RequestedCredentials , Challenged , Skipped ,
  Rejected
}
 
- Public Types inherited from resip::DumFeature
enum  ProcessingResultMask { EventDoneBit = 1 << 0 , EventTakenBit = 1 << 1 , FeatureDoneBit = 1 << 2 , ChainDoneBit = 1 << 3 }
 
enum  ProcessingResult {
  EventTaken = EventTakenBit , FeatureDone = FeatureDoneBit , FeatureDoneAndEventDone = FeatureDoneBit | EventDoneBit , FeatureDoneAndEventTaken = FeatureDoneBit | EventTakenBit ,
  ChainDoneAndEventDone = ChainDoneBit | EventDoneBit , ChainDoneAndEventTaken = ChainDoneBit | EventTakenBit
}
 
- Protected Types inherited from resip::ServerAuthManager
enum  AuthFailureReason { InvalidRequest , BadCredentials , Error }
 
typedef std::map< Data, SipMessage * > MessageMap
 
- Protected Attributes inherited from resip::ServerAuthManager
MessageMap mMessages
 
bool mChallengeThirdParties
 
resip::Data mStaticRealm
 
std::vector< DigestType > mChallengeDigestTypes
 
- Protected Attributes inherited from resip::DumFeature
DialogUsageManager & mDum
 
TargetCommand::Target & mTarget
 

Detailed Description

Definition at line 25 of file ReproServerAuthManager.hxx.

Constructor & Destructor Documentation

◆ ReproServerAuthManager()

ReproServerAuthManager::ReproServerAuthManager ( resip::DialogUsageManager &  dum,
resip::Dispatcher *  authRequestDispatcher,
AclStore &  aclDb,
bool  useAuthInt,
bool  rejectBadNonces,
bool  challengeThirdParties,
const resip::Data &  staticRealm = resip::Data::Empty,
const std::vector< resip::DigestType > &  challengeDigestTypes = std::vector<resip::DigestType>() 
)

Definition at line 17 of file ReproServerAuthManager.cxx.

◆ ~ReproServerAuthManager()

ReproServerAuthManager::~ReproServerAuthManager ( )

Definition at line 34 of file ReproServerAuthManager.cxx.

Member Function Documentation

◆ rejectBadNonces()

bool ReproServerAuthManager::rejectBadNonces ( ) const
protectedvirtual

Reimplemented from resip::ServerAuthManager.

Definition at line 45 of file ReproServerAuthManager.cxx.

◆ requestCredential()

void ReproServerAuthManager::requestCredential ( const resip::Data &  user,
const resip::Data &  realm,
const resip::SipMessage &  msg,
const resip::Auth &  auth,
const resip::Data &  transactionId 
)
protectedvirtual

Implements resip::ServerAuthManager.

Definition at line 65 of file ReproServerAuthManager.cxx.

◆ requiresChallenge()

AsyncBool ReproServerAuthManager::requiresChallenge ( const resip::SipMessage &  msg)
protectedvirtual

should return true if the request must be challenged The default is to challenge all requests - override this class to change this beviour

Reimplemented from resip::ServerAuthManager.

Definition at line 51 of file ReproServerAuthManager.cxx.

◆ useAuthInt()

bool ReproServerAuthManager::useAuthInt ( ) const
protectedvirtual

Reimplemented from resip::ServerAuthManager.

Definition at line 39 of file ReproServerAuthManager.cxx.


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