|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jain.protocol.ip.sip.Challenge
This class represents a generic SIP authentication challenge. SIP provides a simple challenge-response authentication mechanism which may be used by a proxy or user agent server to challenge a client RequestMessage and by a client to provide authentication information. It uses an extensible token to identify the authentication Scheme. The Realm is a string to be displayed to users so they know which username and password to use. This string should contain at least the name of the host performing the authentication and might additionally indicate the collection of users who might have access. It is required for all authentication schemes which issue a challenge.
WWWAuthenticateHeader,
ProxyAuthenticateHeader,
BasicChallenge,
DigestChallenge| Constructor Summary | |
Challenge(java.lang.String scheme)
Creates a Challenge based on given authentication scheme and realm |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of Challenge |
boolean |
equals(Challenge challenge)
Indicates whether some other Challenge is "equal to" this one |
java.lang.String |
getExtension(java.lang.String extension)
Gets the value of specified parameter in Challenge |
java.lang.String[] |
getExtensions()
Gets an array of Challenge's parameter names |
java.lang.String |
getRealm()
Gets authentication realm |
java.lang.String |
getScheme()
Gets authentication scheme |
boolean |
hasExtension(java.lang.String extension)
Gets boolean value to indicate if the Challenge has specified extension parameter |
boolean |
hasExtensions()
Gets boolean value to indicate if the Challenge has extension parameters |
void |
removeExtension(java.lang.String extension)
Removes specified extension parameter from Challenge |
void |
removeExtensions()
Removes all extension parameters from Challenge |
void |
setExtension(java.lang.String extension,
java.lang.String value)
Sets value of parameter to value in Challenge |
void |
setRealm(java.lang.String realm)
Sets authentication realm |
void |
setScheme(java.lang.String scheme)
Sets authentication scheme |
java.lang.String |
toString()
Gets string representation of Challenge |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Challenge(java.lang.String scheme)
throws java.lang.IllegalArgumentException
scheme - authentication schemerealm - authentication realm| Method Detail |
public void setScheme(java.lang.String scheme)
throws java.lang.IllegalArgumentException
scheme - the authentication schemepublic java.lang.String getScheme()
public java.lang.String getRealm()
public void setRealm(java.lang.String realm)
throws java.lang.IllegalArgumentException
realm - the authentication realmpublic void removeExtension(java.lang.String extension)
extension - extension parameter to remove from Challengepublic void removeExtensions()
public java.lang.String getExtension(java.lang.String extension)
throws ParameterNotSetException
parameter - parameter to retrieve
public java.lang.String[] getExtensions()
throws ParameterNotSetException
public boolean hasExtensions()
public boolean hasExtension(java.lang.String extension)
public void setExtension(java.lang.String extension,
java.lang.String value)
parameter - name of parametervalue - value of parameterpublic java.lang.String toString()
public java.lang.Object clone()
public boolean equals(Challenge challenge)
challenge - the Challenge with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems