NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.header
Class Challenge

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.header.SIPObject
          extended by gov.nist.javax.sip.header.Challenge
All Implemented Interfaces:
Serializable, Cloneable

public class Challenge
extends SIPObject

Challenge part of the Auth header. This is only used by the parser interface

Since:
1.1
Version:
1.2 $Revision: 1.7 $ $Date: 2009/07/17 18:57:28 $
Author:
M. Ranganathan
See Also:
Serialized Form

Constructor Summary
Challenge()
          Default constructor
 
Method Summary
 Object clone()
          Clones this object.
 String encode()
          Encode the challenge in canonical form.
 String getAlgorithm()
          get the Algorithm value.
 gov.nist.core.NameValueList getAuthParams()
          get AuthParms list.
 String getDomain()
          get the domain
 String getOpaque()
          get the Opaque field
 String getParameter(String name)
          get the specified parameter
 String getQOP()
          get QOP value
 String getRealm()
          get the realm value.
 String getResponse()
          get the Response value.
 String getScheme()
          get the scheme field
 String getSignature()
          get the Signature value.
 String getSignedBy()
          get the signedBy value.
 String getStale()
          get the State value.
 String getURI()
          get the URI field
 boolean hasParameter(String name)
          boolean function
 boolean hasParameters()
          Boolean function
 boolean removeParameter(String name)
          delete the specified parameter
 void removeParameters()
          remove all parameters
 void setAuthParams(gov.nist.core.NameValueList a)
          Set the authParams member
 void setParameter(gov.nist.core.NameValue nv)
          set the specified parameter
 void setScheme(String s)
          Set the scheme member
 
Methods inherited from class gov.nist.javax.sip.header.SIPObject
dbgPrint, debugDump, debugDump, encode, equals, match, toString
 
Methods inherited from class gov.nist.core.GenericObject
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Challenge

public Challenge()
Default constructor

Method Detail

encode

public String encode()
Encode the challenge in canonical form.

Specified by:
encode in class SIPObject
Returns:
String

getScheme

public String getScheme()
get the scheme field

Returns:
String

getAuthParams

public gov.nist.core.NameValueList getAuthParams()
get AuthParms list.

Returns:
NameValueList

getDomain

public String getDomain()
get the domain

Returns:
String

getURI

public String getURI()
get the URI field

Returns:
String

getOpaque

public String getOpaque()
get the Opaque field

Returns:
String

getQOP

public String getQOP()
get QOP value

Returns:
String

getAlgorithm

public String getAlgorithm()
get the Algorithm value.

Returns:
String

getStale

public String getStale()
get the State value.

Returns:
String

getSignature

public String getSignature()
get the Signature value.

Returns:
String

getSignedBy

public String getSignedBy()
get the signedBy value.

Returns:
String

getResponse

public String getResponse()
get the Response value.

Returns:
String

getRealm

public String getRealm()
get the realm value.

Returns:
String.

getParameter

public String getParameter(String name)
get the specified parameter

Parameters:
name - String to set
Returns:
String to set

hasParameter

public boolean hasParameter(String name)
boolean function

Parameters:
name - String to set
Returns:
true if this header has the specified parameter, false otherwise.

hasParameters

public boolean hasParameters()
Boolean function

Returns:
true if this header has some parameters.

removeParameter

public boolean removeParameter(String name)
delete the specified parameter

Parameters:
name - String
Returns:
true if the specified parameter has been removed, false otherwise.

removeParameters

public void removeParameters()
remove all parameters


setParameter

public void setParameter(gov.nist.core.NameValue nv)
set the specified parameter

Parameters:
nv - NameValue to set

setScheme

public void setScheme(String s)
Set the scheme member

Parameters:
s - String to set

setAuthParams

public void setAuthParams(gov.nist.core.NameValueList a)
Set the authParams member

Parameters:
a - NameValueList to set

clone

public Object clone()
Description copied from class: gov.nist.core.GenericObject
Clones this object.

Overrides:
clone in class gov.nist.core.GenericObject

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.