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

#include <WsCookieAuthManager.hxx>

Inheritance diagram for resip::WsCookieAuthManager:
[legend]

Public Types

enum  Result { Authorized , 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
}
 

Public Member Functions

 WsCookieAuthManager (DialogUsageManager &dum, TargetCommand::Target &target)
 
virtual ~WsCookieAuthManager ()
 
virtual ProcessingResult process (Message *msg)
 
- 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 Result handle (SipMessage *sipMsg)
 
bool cookieUriMatch (const resip::Uri &first, const resip::Uri &second)
 compares URI user and host, allows wildcards in first URI
 
bool authorizedForThisIdentity (const MethodTypes method, const WsCookieContext &wsCookieContext, const resip::Uri &fromUri, const resip::Uri &toUri)
 should return true if the passed in user is authorized for the provided uri
 
virtual bool requiresAuthorization (const 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
 

Additional Inherited Members

- Protected Attributes inherited from resip::DumFeature
DialogUsageManager & mDum
 
TargetCommand::Target & mTarget
 

Detailed Description

Definition at line 16 of file WsCookieAuthManager.hxx.

Member Enumeration Documentation

◆ Result

Enumerator
Authorized 
Skipped 
Rejected 

Definition at line 19 of file WsCookieAuthManager.hxx.

Constructor & Destructor Documentation

◆ WsCookieAuthManager()

WsCookieAuthManager::WsCookieAuthManager ( DialogUsageManager &  dum,
TargetCommand::Target &  target 
)

Definition at line 17 of file WsCookieAuthManager.cxx.

◆ ~WsCookieAuthManager()

WsCookieAuthManager::~WsCookieAuthManager ( )
virtual

Definition at line 22 of file WsCookieAuthManager.cxx.

Member Function Documentation

◆ authorizedForThisIdentity()

bool WsCookieAuthManager::authorizedForThisIdentity ( const MethodTypes  method,
const WsCookieContext &  wsCookieContext,
const resip::Uri &  fromUri,
const resip::Uri &  toUri 
)
protected

should return true if the passed in user is authorized for the provided uri

Definition at line 63 of file WsCookieAuthManager.cxx.

◆ cookieUriMatch()

bool WsCookieAuthManager::cookieUriMatch ( const resip::Uri &  first,
const resip::Uri &  second 
)
protected

compares URI user and host, allows wildcards in first URI

Definition at line 54 of file WsCookieAuthManager.cxx.

◆ handle()

WsCookieAuthManager::Result WsCookieAuthManager::handle ( SipMessage *  sipMsg)
protectedvirtual

Definition at line 99 of file WsCookieAuthManager.cxx.

◆ process()

DumFeature::ProcessingResult WsCookieAuthManager::process ( Message *  msg)
virtual

dcm! – unnecessary happens in handle

Implements resip::DumFeature.

Definition at line 32 of file WsCookieAuthManager.cxx.

◆ requiresAuthorization()

bool WsCookieAuthManager::requiresAuthorization ( const 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

Definition at line 157 of file WsCookieAuthManager.cxx.


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