|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <ServerAuthManager.hxx>
Public Types | |
| 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 } |
Public Member Functions | |
| 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 Types | |
| enum | AuthFailureReason { InvalidRequest , BadCredentials , Error } |
| typedef std::map< Data, SipMessage * > | MessageMap |
Protected Member Functions | |
| virtual void | requestCredential (const Data &user, const Data &realm, const SipMessage &msg, const Auth &auth, const Data &transactionToken)=0 |
| virtual bool | useAuthInt () const |
| virtual bool | proxyAuthenticationMode () const |
| virtual bool | rejectBadNonces () const |
| virtual AsyncBool | requiresChallenge (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 | |
| 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) |
Protected Attributes | |
| MessageMap | mMessages |
| bool | mChallengeThirdParties |
| resip::Data | mStaticRealm |
| std::vector< DigestType > | mChallengeDigestTypes |
Protected Attributes inherited from resip::DumFeature | |
| DialogUsageManager & | mDum |
| TargetCommand::Target & | mTarget |
Definition at line 19 of file ServerAuthManager.hxx.
|
protected |
Definition at line 72 of file ServerAuthManager.hxx.
|
protected |
| Enumerator | |
|---|---|
| InvalidRequest | |
| BadCredentials | |
| Error | |
Definition at line 53 of file ServerAuthManager.hxx.
| Enumerator | |
|---|---|
| RequestedInfo | |
| RequestedCredentials | |
| Challenged | |
| Skipped | |
| Rejected | |
Definition at line 22 of file ServerAuthManager.hxx.
| ServerAuthManager::ServerAuthManager | ( | DialogUsageManager & | dum, |
| TargetCommand::Target & | target, | ||
| bool | challengeThirdParties = true, |
||
| const resip::Data & | staticRealm = "", |
||
| const std::vector< DigestType > & | challengeDigestTypes = std::vector<DigestType>() |
||
| ) |
Definition at line 21 of file ServerAuthManager.cxx.
|
virtual |
Definition at line 34 of file ServerAuthManager.cxx.
|
protectedvirtual |
should return true if the passed in user is authorized for the provided uri
Reimplemented in recon::UserAgentServerAuthManager.
Definition at line 299 of file ServerAuthManager.cxx.
|
protectedvirtual |
returns the realm to be used for the challenge
Reimplemented in recon::UserAgentServerAuthManager.
Definition at line 325 of file ServerAuthManager.cxx.
|
virtual |
Definition at line 357 of file ServerAuthManager.cxx.
|
virtual |
dcm! – need to handle stale/unit test advancedAuthenticateRequest dcm! – delta? deal with.
Definition at line 128 of file ServerAuthManager.cxx.
|
protectedvirtual |
should return true if realm passed in is ours and we can challenge
Reimplemented in recon::UserAgentServerAuthManager.
Definition at line 345 of file ServerAuthManager.cxx.
|
protected |
Definition at line 472 of file ServerAuthManager.cxx.
|
protected |
Definition at line 453 of file ServerAuthManager.cxx.
|
protectedvirtual |
Definition at line 493 of file ServerAuthManager.cxx.
|
protectedvirtual |
Definition at line 487 of file ServerAuthManager.cxx.
|
virtual |
dcm! – unnecessary happens in handle
Implements resip::DumFeature.
Definition at line 44 of file ServerAuthManager.cxx.
|
protectedvirtual |
Reimplemented in recon::UserAgentServerAuthManager.
Definition at line 272 of file ServerAuthManager.cxx.
|
protectedvirtual |
Reimplemented in repro::ReproServerAuthManager.
Definition at line 279 of file ServerAuthManager.cxx.
|
protectedpure virtual |
Implemented in repro::ReproServerAuthManager, and recon::UserAgentServerAuthManager.
|
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 in repro::ReproServerAuthManager, and recon::UserAgentServerAuthManager.
Definition at line 286 of file ServerAuthManager.cxx.
|
protectedvirtual |
Reimplemented in repro::ReproServerAuthManager, and recon::UserAgentServerAuthManager.
Definition at line 265 of file ServerAuthManager.cxx.
|
protected |
Definition at line 105 of file ServerAuthManager.hxx.
|
protected |
Definition at line 103 of file ServerAuthManager.hxx.
|
protected |
Definition at line 73 of file ServerAuthManager.hxx.
|
protected |
Definition at line 104 of file ServerAuthManager.hxx.