com.sipresponse.flibblecallmgr.internal.util
Class DigestClientAuthenticationMethod

java.lang.Object
  extended by com.sipresponse.flibblecallmgr.internal.util.DigestClientAuthenticationMethod
All Implemented Interfaces:
ClientAuthenticationMethod

public class DigestClientAuthenticationMethod
extends java.lang.Object
implements ClientAuthenticationMethod

Get this interface from the nist-sip IM

Author:
olivier deruelle

Constructor Summary
DigestClientAuthenticationMethod()
           
 
Method Summary
 java.lang.String generateResponse()
          generate the response
 void initialize(java.lang.String realm, java.lang.String userName, java.lang.String uri, java.lang.String nonce, java.lang.String password, java.lang.String method, java.lang.String cnonce, java.lang.String algorithm)
          Initialize the Client authentication method.
static java.lang.String toHexString(byte[] b)
          convert an array of bytes to an hexadecimal string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestClientAuthenticationMethod

public DigestClientAuthenticationMethod()
Method Detail

toHexString

public static java.lang.String toHexString(byte[] b)
convert an array of bytes to an hexadecimal string

Parameters:
b - bytes array to convert to a hexadecimal string
Returns:
a string

initialize

public void initialize(java.lang.String realm,
                       java.lang.String userName,
                       java.lang.String uri,
                       java.lang.String nonce,
                       java.lang.String password,
                       java.lang.String method,
                       java.lang.String cnonce,
                       java.lang.String algorithm)
                throws java.lang.Exception
Description copied from interface: ClientAuthenticationMethod
Initialize the Client authentication method. This has to be done outside the constructor.

Specified by:
initialize in interface ClientAuthenticationMethod
Throws:
java.lang.Exception - if the parameters are not correct.

generateResponse

public java.lang.String generateResponse()
generate the response

Specified by:
generateResponse in interface ClientAuthenticationMethod