jain.protocol.ip.sip.header
Class WWWAuthenticateHeader
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.ResponseHeader
|
+--jain.protocol.ip.sip.header.WWWAuthenticateHeader
- public final class WWWAuthenticateHeader
- extends ResponseHeader
This class represents the WWW-Authenticate response-header.
At least one WWWAuthenticateHeader must be included in UNAUTHORIZED
ResponseMessages. The header value consists of a
challenge that indicates the authentication scheme(s) and
parameters applicable to the RequestURI.
- Version:
- 0.6
- See Also:
AuthorizationHeader
|
Field Summary |
static java.lang.String |
token
Token of WWWAuthenticateHeader |
|
Method Summary |
java.lang.Object |
clone()
Creates and returns a copy of WWWAuthenticateHeader |
boolean |
equals(WWWAuthenticateHeader wwwAuthenticateHeader)
Indicates whether some other WWWAuthenticateHeader is "equal to" this one |
Challenge |
getChallenge()
Gets challenge of WWWAuthenticateHeader |
java.lang.String |
getValue()
Gets value of WWWAuthenticateHeader |
void |
setChallenge(Challenge challenge)
Sets challenge of WWWAuthenticateHeader |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
token
public static final java.lang.String token
- Token of WWWAuthenticateHeader
WWWAuthenticateHeader
public WWWAuthenticateHeader(Challenge challenge)
throws java.lang.IllegalArgumentException
- Creates a WWWAuthenticateHeader based on given challenge
- Parameters:
challenge - challenge- Throws:
- java.lang.IllegalArgumentException - if challenge is null
getChallenge
public Challenge getChallenge()
- Gets challenge of WWWAuthenticateHeader
- Returns:
- challenge of WWWAuthenticateHeader
setChallenge
public void setChallenge(Challenge challenge)
throws java.lang.IllegalArgumentException
- Sets challenge of WWWAuthenticateHeader
- Parameters:
challenge - challengef- Throws:
- java.lang.IllegalArgumentException - if challenge is null
getValue
public java.lang.String getValue()
- Gets value of WWWAuthenticateHeader
- Overrides:
- getValue in class Header
- Returns:
- value of WWWAuthenticateHeader
clone
public java.lang.Object clone()
- Creates and returns a copy of WWWAuthenticateHeader
- Overrides:
- clone in class Header
equals
public boolean equals(WWWAuthenticateHeader wwwAuthenticateHeader)
- Indicates whether some other WWWAuthenticateHeader is "equal to" this one
- Parameters:
wwwAuthenticateHeader - the WWWAuthenticateHeader with which to compare
If you have any comments or queries, please mail them to JAIN-SIP-interest@sun.com
Copyright - 2000 Sun Microsystems