|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jain.protocol.ip.sip.Credentials
This class represents generic credentials for an authentication scheme. A user agent that wishes to authenticate itself with a user agent server--usually, but not necessarily, after receiving an UNAUTHORIZED ResponseMessage - may do so by including an AuthorizationHeader with the RequestMessage. A client that wishes to authenticate itself with a proxy--usually, but not necessarily, after receiving a PROXY_AUTHENTICATION_REQUIRED ResponseMessage - may do so by including a ProxyAuthorizationHeader with the RequestMessage. Both the AuthorizationHeader and the ProxyAuthorizationHeader values consist of credentials containing the authentication information of the client for the realm of the resource being requested. The user agent must choose to use one of the Challenges with the strongest Scheme it understands and request Credentials from the user based upon that Challenge.
ResponseMessage,
AuthorizationHeader,
ProxyAuthorizationHeader| Constructor Summary | |
Credentials(java.lang.String scheme)
Creates Credentials based on given authentication scheme |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of Credentials |
boolean |
equals(Credentials credentials)
Indicates whether some other Credentials is "equal to" this one |
java.lang.String |
getExtension(java.lang.String extension)
Gets the value of specified parameter in Credentials |
java.lang.String[] |
getExtensions()
Gets an array of Credentials's parameter names |
java.lang.String |
getScheme()
Method used to get the scheme |
boolean |
hasExtension(java.lang.String extension)
Gets boolean value to indicate if the Credentials has specified extension parameter |
boolean |
hasExtensions()
Gets boolean value to indicate if the Credentials has extension parameters |
void |
removeExtension(java.lang.String extension)
Removes specified extension parameter from Credentials |
void |
removeExtensions()
Removes all extension parameters from Credentials |
void |
setExtension(java.lang.String extension,
java.lang.String value)
Sets value of parameter to value in Credentials |
void |
setScheme(java.lang.String scheme)
Method used to set the scheme |
java.lang.String |
toString()
Gets string representation of Credentials |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Credentials(java.lang.String scheme)
throws java.lang.IllegalArgumentException
scheme - authentication scheme| Method Detail |
public void setScheme(java.lang.String scheme)
throws java.lang.IllegalArgumentException
String - the schemepublic java.lang.String getScheme()
public void removeExtension(java.lang.String extension)
extension - extension parameter to remove from Credentialspublic 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(Credentials credentials)
credentials - the Credentials with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems