## org.w3c.www.http
Class HttpCredential

    java.lang.Object
      |
      +--org.w3c.www.http.BasicValue
            |
            +--org.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.

Fields inherited from class org.w3c.www.http.BasicValue
`isValid, raw, rlen, roff`

Constructor Summary
`HttpCredential()`
`HttpCredential(boolean isValid, java.lang.String scheme)`

Method Summary
`java.lang.String` | `getAuthParameter(java.lang.String name)` Get an authentication parameter.
`java.lang.String` | `getScheme()` Get the authentication scheme identifier.
`java.lang.Object` | `getValue()`
`protected void` | `parse()` parse.
`void` | `setAuthParameter(java.lang.String name, java.lang.String value)` Set an authentication parameter.
`void` | `setScheme(java.lang.String scheme)` Set the authentication scheme.
`protected void` | `updateByteValue()`

Methods inherited from class org.w3c.www.http.BasicValue
`addBytes, appendValue, checkByteValue, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### HttpCredential

    public HttpCredential(boolean isValid,
                          java.lang.String scheme)

### HttpCredential

    public HttpCredential()

Method Detail

### parse

    protected void parse()
                  throws HttpParserException

  parse.
  Throws:
    HttpParserException - if parsing failed.
  Overrides:
    parse in class BasicValue

### updateByteValue

    protected void updateByteValue()

  Overrides:
    updateByteValue in class BasicValue

### getValue

    public java.lang.Object getValue()

  Overrides:
    getValue in class BasicValue

### getScheme

    public java.lang.String getScheme()

  Get the authentication scheme identifier.
  Returns:
    A String giving the auth scheme identifier.

### setScheme

    public void setScheme(java.lang.String scheme)

  Set the authentication scheme.
  Parameters:
    `scheme` - The auth scheme for these credentials.

### getAuthParameter

    public java.lang.String getAuthParameter(java.lang.String name)

  Get an authentication parameter.
  Parameters:
    `name` - The name of the parameter to fetch.
  Returns:
    The String value, or null if undefined.

### setAuthParameter

    public void setAuthParameter(java.lang.String name,
                                 java.lang.String value)

  Set an authentication parameter.
  Parameters:
    `name` - The name of the authentication parameter.
    `value` - The value of the authentication parameter.