com.sipresponse.flibblecallmgr.internal.util
Interface AuthenticationMethod


public interface AuthenticationMethod


Method Summary
 boolean doAuthenticate(java.lang.String username, javax.sip.header.AuthorizationHeader authorizationHeader, javax.sip.message.Request request)
          Check the response and answer true if authentication succeeds.
 java.lang.String generateNonce()
          Generate the challenge string.
 java.lang.String getAlgorithm()
          Get the authentication Algorithm
 java.lang.String getDomain()
          get the authentication domain.
 java.lang.String getRealm(java.lang.String resource)
          Get the authentication realm.
 java.lang.String getScheme()
          Get the authentication scheme
 void initialize()
          Initialize the authentication method.
 

Method Detail

getScheme

java.lang.String getScheme()
Get the authentication scheme


initialize

void initialize()
Initialize the authentication method. This has to be done outside the constructor as the constructor is generic (created from the class name specified in the authentication method).


getRealm

java.lang.String getRealm(java.lang.String resource)
Get the authentication realm.


getDomain

java.lang.String getDomain()
get the authentication domain.


getAlgorithm

java.lang.String getAlgorithm()
Get the authentication Algorithm


generateNonce

java.lang.String generateNonce()
Generate the challenge string.


doAuthenticate

boolean doAuthenticate(java.lang.String username,
                       javax.sip.header.AuthorizationHeader authorizationHeader,
                       javax.sip.message.Request request)
Check the response and answer true if authentication succeeds. Not all of these fields are relevant for every method - a basic scheme may simply do a username password check.

Parameters:
username - is the username and password.
authorizationHeader - is the authorization header from the SIP request.
requestLine - is the RequestLine from the SIP Request.