Search in sources :

Example 1 with AuthenticationHelper

use of gov.nist.javax.sip.clientauthutils.AuthenticationHelper in project XobotOS by xamarin.

the class SipHelper method handleChallenge.

public ClientTransaction handleChallenge(ResponseEvent responseEvent, AccountManager accountManager) throws SipException {
    AuthenticationHelper authenticationHelper = ((SipStackExt) mSipStack).getAuthenticationHelper(accountManager, mHeaderFactory);
    ClientTransaction tid = responseEvent.getClientTransaction();
    ClientTransaction ct = authenticationHelper.handleChallenge(responseEvent.getResponse(), tid, mSipProvider, 5);
    if (DEBUG)
        Log.d(TAG, "send request with challenge response: " + ct.getRequest());
    ct.sendRequest();
    return ct;
}
Also used : AuthenticationHelper(gov.nist.javax.sip.clientauthutils.AuthenticationHelper) SipStackExt(gov.nist.javax.sip.SipStackExt) ClientTransaction(javax.sip.ClientTransaction)

Aggregations

SipStackExt (gov.nist.javax.sip.SipStackExt)1 AuthenticationHelper (gov.nist.javax.sip.clientauthutils.AuthenticationHelper)1 ClientTransaction (javax.sip.ClientTransaction)1