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

#include <DigestAuthenticator.hxx>

Inheritance diagram for repro::DigestAuthenticator:
[legend]

Public Member Functions

 DigestAuthenticator (ProxyConfig &config, resip::Dispatcher *authRequestDispatcher, const resip::Data &staticRealm=resip::Data::Empty, const std::vector< resip::DigestType > &challengeDigestTypes=std::vector< resip::DigestType >())
 
 ~DigestAuthenticator ()
 
virtual processor_action_t process (RequestContext &)
 
- 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

virtual bool authorizedForThisIdentity (const resip::Data &user, const resip::Data &realm, resip::Uri &fromUri)
 
virtual resip::NameAddr getDefaultIdentity (const resip::Data &user, const resip::Data &realm, resip::NameAddr &from)
 
virtual void challengeRequest (RequestContext &, bool stale=false)
 
virtual processor_action_t requestUserAuthInfo (RequestContext &, resip::Data &realm)
 
virtual processor_action_t requestUserAuthInfo (RequestContext &, const resip::Auth &auth, UserInfoMessage *userInfo)
 
virtual resip::Data getRealm (RequestContext &)
 
virtual bool isMyRealm (RequestContext &, const resip::Data &realm)
 

Protected Attributes

resip::Dispatcher * mAuthRequestDispatcher
 
resip::Data mStaticRealm
 
bool mNoIdentityHeaders
 
resip::Data mHttpHostname
 
int mHttpPort
 
bool mUseAuthInt
 
bool mRejectBadNonces
 
bool mAllowInDialogImpersonationWithinRealm
 
std::vector< resip::DigestType > mChallengeDigestTypes
 
- 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 20 of file DigestAuthenticator.hxx.

Constructor & Destructor Documentation

◆ DigestAuthenticator()

DigestAuthenticator::DigestAuthenticator ( ProxyConfig &  config,
resip::Dispatcher *  authRequestDispatcher,
const resip::Data &  staticRealm = resip::Data::Empty,
const std::vector< resip::DigestType > &  challengeDigestTypes = std::vector<resip::DigestType>() 
)

Definition at line 30 of file DigestAuthenticator.cxx.

◆ ~DigestAuthenticator()

DigestAuthenticator::~DigestAuthenticator ( )

Definition at line 47 of file DigestAuthenticator.cxx.

Member Function Documentation

◆ authorizedForThisIdentity()

bool DigestAuthenticator::authorizedForThisIdentity ( const resip::Data &  user,
const resip::Data &  realm,
resip::Uri &  fromUri 
)
protectedvirtual

Definition at line 332 of file DigestAuthenticator.cxx.

◆ challengeRequest()

void DigestAuthenticator::challengeRequest ( repro::RequestContext &  rc,
bool  stale = false 
)
protectedvirtual

Definition at line 370 of file DigestAuthenticator.cxx.

◆ getDefaultIdentity()

NameAddr DigestAuthenticator::getDefaultIdentity ( const resip::Data &  user,
const resip::Data &  realm,
resip::NameAddr &  from 
)
protectedvirtual

Definition at line 359 of file DigestAuthenticator.cxx.

◆ getRealm()

resip::Data DigestAuthenticator::getRealm ( RequestContext &  rc)
protectedvirtual

Definition at line 440 of file DigestAuthenticator.cxx.

◆ isMyRealm()

bool DigestAuthenticator::isMyRealm ( RequestContext &  rc,
const resip::Data &  realm 
)
protectedvirtual

Definition at line 450 of file DigestAuthenticator.cxx.

◆ process()

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

Implements repro::Processor.

Definition at line 52 of file DigestAuthenticator.cxx.

◆ requestUserAuthInfo() [1/2]

Processor::processor_action_t DigestAuthenticator::requestUserAuthInfo ( RequestContext &  rc,
const resip::Auth &  auth,
UserInfoMessage *  userInfo 
)
protectedvirtual

Definition at line 432 of file DigestAuthenticator.cxx.

◆ requestUserAuthInfo() [2/2]

repro::Processor::processor_action_t DigestAuthenticator::requestUserAuthInfo ( repro::RequestContext &  rc,
resip::Data &  realm 
)
protectedvirtual

Definition at line 383 of file DigestAuthenticator.cxx.

Member Data Documentation

◆ mAllowInDialogImpersonationWithinRealm

bool repro::DigestAuthenticator::mAllowInDialogImpersonationWithinRealm
protected

Definition at line 48 of file DigestAuthenticator.hxx.

◆ mAuthRequestDispatcher

resip::Dispatcher* repro::DigestAuthenticator::mAuthRequestDispatcher
protected

Definition at line 41 of file DigestAuthenticator.hxx.

◆ mChallengeDigestTypes

std::vector<resip::DigestType> repro::DigestAuthenticator::mChallengeDigestTypes
protected

Definition at line 49 of file DigestAuthenticator.hxx.

◆ mHttpHostname

resip::Data repro::DigestAuthenticator::mHttpHostname
protected

Definition at line 44 of file DigestAuthenticator.hxx.

◆ mHttpPort

int repro::DigestAuthenticator::mHttpPort
protected

Definition at line 45 of file DigestAuthenticator.hxx.

◆ mNoIdentityHeaders

bool repro::DigestAuthenticator::mNoIdentityHeaders
protected

Definition at line 43 of file DigestAuthenticator.hxx.

◆ mRejectBadNonces

bool repro::DigestAuthenticator::mRejectBadNonces
protected

Definition at line 47 of file DigestAuthenticator.hxx.

◆ mStaticRealm

resip::Data repro::DigestAuthenticator::mStaticRealm
protected

Definition at line 42 of file DigestAuthenticator.hxx.

◆ mUseAuthInt

bool repro::DigestAuthenticator::mUseAuthInt
protected

Definition at line 46 of file DigestAuthenticator.hxx.


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