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

#include <CookieAuthenticator.hxx>

Inheritance diagram for repro::CookieAuthenticator:
[legend]

Public Member Functions

 CookieAuthenticator (const Data &wsCookieAuthSharedSecret, const Data &wsCookieExtraHeaderName, resip::SipStack *stack)
 
 ~CookieAuthenticator ()
 
virtual processor_action_t process (RequestContext &)
 
virtual void dump (EncodeStream &os) const
 
- Public Member Functions inherited from repro::Processor
 Processor (const resip::Data &name, ChainType type=NO_TYPE)
 
virtual ~Processor ()
 
virtual void setChainType (ChainType type)
 
virtual ChainType getChainType () const
 
virtual void setName (const resip::Data &name)
 
virtual const resip::Data & getName () const
 
virtual void pushAddress (const std::vector< short > &address)
 
virtual void pushAddress (const short address)
 
virtual const std::vector< short > & getAddress () const
 

Protected Member Functions

bool cookieUriMatch (const resip::Uri &first, const resip::Uri &second)
 
bool authorizedForThisIdentity (const MethodTypes method, const WsCookieContext &wsCookieContext, resip::Uri &fromUri, resip::Uri &toUri)
 

Protected Attributes

std::unique_ptr< resip::ExtensionHeader > mWsCookieExtraHeader
 
- Protected Attributes inherited from repro::Processor
std::vector< short > mAddress
 
ChainType mType
 
resip::Data mName
 

Additional Inherited Members

- Public Types inherited from repro::Processor
enum  ChainType { NO_TYPE =0 , REQUEST_CHAIN , RESPONSE_CHAIN , TARGET_CHAIN }
 
enum  processor_action_t { Continue , WaitingForEvent , SkipThisChain , SkipAllChains }
 

Detailed Description

Definition at line 15 of file CookieAuthenticator.hxx.

Constructor & Destructor Documentation

◆ CookieAuthenticator()

CookieAuthenticator::CookieAuthenticator ( const Data &  wsCookieAuthSharedSecret,
const Data &  wsCookieExtraHeaderName,
resip::SipStack *  stack 
)

Definition at line 35 of file CookieAuthenticator.cxx.

◆ ~CookieAuthenticator()

CookieAuthenticator::~CookieAuthenticator ( )

Definition at line 43 of file CookieAuthenticator.cxx.

Member Function Documentation

◆ authorizedForThisIdentity()

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

Definition at line 128 of file CookieAuthenticator.cxx.

◆ cookieUriMatch()

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

Definition at line 119 of file CookieAuthenticator.cxx.

◆ dump()

void CookieAuthenticator::dump ( EncodeStream &  os) const
virtual

Definition at line 162 of file CookieAuthenticator.cxx.

◆ process()

repro::Processor::processor_action_t CookieAuthenticator::process ( repro::RequestContext &  rc)
virtual

Implements repro::Processor.

Definition at line 48 of file CookieAuthenticator.cxx.

Member Data Documentation

◆ mWsCookieExtraHeader

std::unique_ptr<resip::ExtensionHeader> repro::CookieAuthenticator::mWsCookieExtraHeader
protected

Definition at line 26 of file CookieAuthenticator.hxx.


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