1#if !defined(RESIP_SERVERAUTHMANAGER_HXX)
2#define RESIP_SERVERAUTHMANAGER_HXX
16class DialogUsageManager;
34 bool challengeThirdParties =
true,
36 const std::vector<DigestType>& challengeDigestTypes = std::vector<DigestType>());
66 const Data& transactionToken ) = 0;
Represents the "credentials" and "challenge" elements in the SIP grammar.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
The base-class used for message-passing.
virtual bool isMyRealm(const Data &realm)
should return true if realm passed in is ours and we can challenge
Result issueChallengeIfRequired(SipMessage *sipMsg)
virtual SipMessage * handleUserAuthInfo(UserAuthInfo *auth)
std::vector< DigestType > mChallengeDigestTypes
virtual Result handle(SipMessage *sipMsg)
virtual const Data & getChallengeRealm(const SipMessage &msg)
returns the realm to be used for the challenge
virtual bool proxyAuthenticationMode() const
virtual void onAuthSuccess(const SipMessage &msg)
virtual ~ServerAuthManager()
virtual bool useAuthInt() const
std::map< Data, SipMessage * > MessageMap
virtual AsyncBool requiresChallenge(const SipMessage &msg)
should return true if the request must be challenged The default is to challenge all requests - overr...
virtual bool rejectBadNonces() const
virtual void onAuthFailure(AuthFailureReason reason, const SipMessage &msg)
virtual ProcessingResult process(Message *msg)
void issueChallenge(SipMessage *sipMsg, bool stale=false)
bool mChallengeThirdParties
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 void requestCredential(const Data &user, const Data &realm, const SipMessage &msg, const Auth &auth, const Data &transactionToken)=0
Represents a SIP message.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;