JSIP API v1.2
November 2006

javax.sip.header
Interface AuthenticationInfoHeader

All Superinterfaces:
java.lang.Cloneable, Header, Parameters, java.io.Serializable

public interface AuthenticationInfoHeader
extends Parameters, Header

The Authentication-Info header field provides for mutual authentication with HTTP Digest. A UAS MAY include this header field in a 2xx response to a request that was successfully authenticated using digest based on the Authorization header field.

For Example:
Authentication-Info: nextnonce="47364c23432d2e131a5fb210812c"

Author:
BEA Systems, NIST

Field Summary
static java.lang.String NAME
          Name of the AlertInfoHeader
 
Method Summary
 java.lang.String getCNonce()
          Returns the CNonce value of this AuthenticationInfoHeader.
 java.lang.String getNextNonce()
          Returns the nextNonce value of this AuthenticationInfoHeader.
 int getNonceCount()
          Returns the Nonce Count value of this AuthenticationInfoHeader.
 java.lang.String getQop()
          Returns the messageQop value of this AuthenticationInfoHeader.
 java.lang.String getResponse()
          Returns the Response value of this AuthenticationInfoHeader.
 void setCNonce(java.lang.String cNonce)
          Sets the CNonce of the AuthenticationInfoHeader to the cNonce parameter value.
 void setNextNonce(java.lang.String nextNonce)
          Sets the NextNonce of the AuthenticationInfoHeader to the nextNonce parameter value.
 void setNonceCount(int nonceCount)
          Sets the Nonce Count of the AuthenticationInfoHeader to the nonceCount parameter value.
 void setQop(java.lang.String qop)
          Sets the Qop value of the AuthenticationInfoHeader to the new qop parameter value.
 void setResponse(java.lang.String response)
          Sets the Response of the AuthenticationInfoHeader to the new response parameter value.
 
Methods inherited from interface javax.sip.header.Parameters
getParameter, getParameterNames, removeParameter, setParameter
 
Methods inherited from interface javax.sip.header.Header
clone, equals, getName, hashCode, toString
 

Field Detail

NAME

static final java.lang.String NAME
Name of the AlertInfoHeader

See Also:
Constant Field Values
Method Detail

setNextNonce

void setNextNonce(java.lang.String nextNonce)
                  throws java.text.ParseException
Sets the NextNonce of the AuthenticationInfoHeader to the nextNonce parameter value.

Parameters:
nextNonce - - the new nextNonce String of this AuthenticationInfoHeader.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the nextNonce value.

getNextNonce

java.lang.String getNextNonce()
Returns the nextNonce value of this AuthenticationInfoHeader.

Returns:
the String representing the nextNonce information, null if value is not set.

setQop

void setQop(java.lang.String qop)
            throws java.text.ParseException
Sets the Qop value of the AuthenticationInfoHeader to the new qop parameter value.

Parameters:
qop - - the new Qop string of this AuthenticationInfoHeader.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the Qop value.

getQop

java.lang.String getQop()
Returns the messageQop value of this AuthenticationInfoHeader.

Returns:
the string representing the messageQop information, null if the value is not set.

setCNonce

void setCNonce(java.lang.String cNonce)
               throws java.text.ParseException
Sets the CNonce of the AuthenticationInfoHeader to the cNonce parameter value.

Parameters:
cNonce - - the new cNonce String of this AuthenticationInfoHeader.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the cNonce value.

getCNonce

java.lang.String getCNonce()
Returns the CNonce value of this AuthenticationInfoHeader.

Returns:
the String representing the cNonce information, null if value is not set.

setNonceCount

void setNonceCount(int nonceCount)
                   throws java.text.ParseException
Sets the Nonce Count of the AuthenticationInfoHeader to the nonceCount parameter value.

Parameters:
nonceCount - - the new nonceCount integer of this AuthenticationInfoHeader.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the nonceCount value.

getNonceCount

int getNonceCount()
Returns the Nonce Count value of this AuthenticationInfoHeader.

Returns:
the integer representing the nonceCount information, -1 if value is not set.

setResponse

void setResponse(java.lang.String response)
                 throws java.text.ParseException
Sets the Response of the AuthenticationInfoHeader to the new response parameter value.

Parameters:
response - - the new response String of this AuthenticationInfoHeader.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the Response.

getResponse

java.lang.String getResponse()
Returns the Response value of this AuthenticationInfoHeader.

Returns:
the String representing the Response information.

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems