jain.protocol.ip.sip.header
Class AuthorizationHeader
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.RequestHeader
|
+--jain.protocol.ip.sip.header.AuthorizationHeader
- public final class AuthorizationHeader
- extends RequestHeader
This class represents the Authorization request-header.
A user agent that wishes to authenticate itself with a server -
usually, but not necessarily, after receiving an UNAUTHORIZED
ResponseMessage - may do so by including an AuthorizationHeader with the
RequestMessage. The AuthorizationHeader consists of credentials
containing the authentication information of the user agent for the
realm of the resource being requested.
- Version:
- 0.6
- See Also:
Credentials
|
Field Summary |
static java.lang.String |
token
Token of AuthorizationHeader |
| 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 AuthorizationHeader
AuthorizationHeader
public AuthorizationHeader(Credentials credentials)
throws java.lang.IllegalArgumentException
- Creates an AuthorizationHeader based on given method
- Parameters:
credentals - credentals- Throws:
- java.lang.IllegalArgumentException - if credentals is null
getCredentials
public Credentials getCredentials()
- Gets credentials of AuthorizationHeader
- Returns:
- credentials of AuthorizationHeader
setCredentials
public void setCredentials(Credentials credentials)
throws java.lang.IllegalArgumentException
- Sets credentials of AuthorizationHeader
- Parameters:
credentials - credentials- Throws:
- java.lang.IllegalArgumentException - if credentials is null
getValue
public java.lang.String getValue()
- Gets value of AuthorizationHeader
- Overrides:
- getValue in class Header
- Returns:
- value of AuthorizationHeader
clone
public java.lang.Object clone()
- Creates and returns a copy of AuthorizationHeader
- Overrides:
- clone in class Header
- Returns:
- copy of AuthorizationHeader
equals
public boolean equals(AuthorizationHeader authorizationHeader)
- Indicates whether some other AuthorizationHeader is "equal to" this one
- Parameters:
authorizationHeader - the AuthorizationHeader with which to compare
If you have any comments or queries, please mail them to JAIN-SIP-interest@sun.com
Copyright - 2000 Sun Microsystems