Class w3c.www.http.HttpCredential
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpCredential

java.lang.Object
   |
   +----w3c.www.http.BasicValue
           |
           +----w3c.www.http.HttpCredential

public class HttpCredential
extends BasicValue
This class has a hack to handle basic authentication. Basic authentication (amongst others) is broken in the HTTP spec, to handle the APIs more nicely, Jigsaw fakes a cookie auth param with the appropriate basic-credentials.

Constructor Index

 o HttpCredential()
 o HttpCredential(boolean, String)

Method Index

 o getAuthParameter(String)
Get an authentication parameter.
 o getScheme()
Get the authentication scheme identifier.
 o getValue()
HeaderValue implemenntation - Get this header value.
 o parse()
Parse this header value into its various components.
 o setAuthParameter(String, String)
Set an authentication parameter.
 o setScheme(String)
Set the authentication scheme.
 o updateByteValue()
Update the RFC822 compatible header value for this object.

Constructors

 o HttpCredential
  public HttpCredential(boolean isValid,
                        String scheme)
 o HttpCredential
  public HttpCredential()

Methods

 o parse
  protected void parse() throws HttpParserException
Parse this header value into its various components.
Overrides:
parse in class BasicValue
 o updateByteValue
  protected void updateByteValue()
Update the RFC822 compatible header value for this object.
Overrides:
updateByteValue in class BasicValue
 o getValue
  public Object getValue()
HeaderValue implemenntation - Get this header value.
Overrides:
getValue in class BasicValue
 o getScheme
  public String getScheme()
Get the authentication scheme identifier.
Returns:
A String giving the auth scheme identifier.
 o setScheme
  public void setScheme(String scheme)
Set the authentication scheme.
Parameters:
scheme - The auth scheme for these credentials.
 o getAuthParameter
  public String getAuthParameter(String name)
Get an authentication parameter.
Parameters:
name - The name of the parameter to fetch.
Returns:
The String value, or null if undefined.
 o setAuthParameter
  public void setAuthParameter(String name,
                               String value)
Set an authentication parameter.
Parameters:
name - The name of the authentication parameter.
value - The value of the authentication parameter.

All Packages  Class Hierarchy  This Package  Previous  Next  Index