MSIPSecUser Class Reference

class MSIPSecUser

A callback used for identifying a user of SIPSec cache entries and requesting credentials for SIP responses containing challenges.

SipServer.exe

Member Functions Documentation

ByPassSIPSec()

TBool ByPassSIPSec()const [pure virtual]

Checks whether the requests and responses should be passed to SIPSec or should SIPSec be bypassed.

PassOnlyRealmsToUser()

TBool PassOnlyRealmsToUser()const [pure virtual]

Checks whether only the realms for each challenge should be passed to the user or the whole responses containing 1..n challenges in WWW-Authenticate or/and Proxy-Authenticate-headers.

RequestCredentialsL(const TDesC8 &)

voidRequestCredentialsL(const TDesC8 &aRealm)[pure virtual]

An asynchronous call to get username and password for a realm. CSIPSec::SetCredentialsL will be called when this asyncronous request completes.

Parameters

const TDesC8 & aRealmthe realm for the username and password.

RequestCredentialsL(CSIPResponse &, TTransactionId, TRefreshId)

voidRequestCredentialsL(CSIPResponse &aResponse,
TTransactionIdaTransactionId,
TRefreshIdaRefreshId
)[pure virtual]

An asynchronous call to get usernames and passwords for the challenges contained in the SIP response. CSIPSec::SetCredentialsL or CSIPSec::IgnoreChallenge will be called for each challenge in the SIP response.

Parameters

CSIPResponse & aResponseresponse that contains 1..n challenges.
TTransactionId aTransactionIdtransaction ID
TRefreshId aRefreshIdrefresh ID, KEmptyRefreshId if not known

TrustedUser(TRegistrationId)

const MSIPSecUser *TrustedUser(TRegistrationIdaRegistrationId)[pure virtual]

Returns a user with which the credentials can be shared with. For example if a cache entry for a realm can be found for a challenge for another user, but not this one, this function is used to check if the existing credentials can be used.

Parameters

TRegistrationId aRegistrationIdregistration ID associated with the trusted user