|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.www.http.BasicValue
org.w3c.www.http.HttpCredential
public class HttpCredential
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.
| Field Summary |
|---|
| 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()
HeaderValue implemenntation - Get this header value. |
protected void |
parse()
parse. |
void |
setAuthParameter(java.lang.String name,
java.lang.String value)
Set an auth parameter value. |
void |
setAuthParameter(java.lang.String name,
java.lang.String value,
boolean quoted)
Set an auth parameter value. |
void |
setScheme(java.lang.String scheme)
Set the authentication scheme. |
protected void |
updateByteValue()
Update the RFC822 compatible header value for this object. |
| Methods inherited from class org.w3c.www.http.BasicValue |
|---|
addBytes, appendValue, checkByteValue, clone, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpCredential(boolean isValid,
java.lang.String scheme)
public HttpCredential()
| Method Detail |
|---|
protected void parse()
throws HttpParserException
parse in class BasicValueHttpParserException - if parsing failed.protected void updateByteValue()
BasicValue
updateByteValue in class BasicValuepublic java.lang.Object getValue()
BasicValue
getValue in interface HeaderValuegetValue in class BasicValuepublic java.lang.String getScheme()
public void setScheme(java.lang.String scheme)
scheme - The auth scheme for these credentials.public java.lang.String getAuthParameter(java.lang.String name)
name - The name of the parameter to fetch.
public void setAuthParameter(java.lang.String name,
java.lang.String value,
boolean quoted)
name - The name of the parameter to set.value - The new value for this parameter.quoted - If true, the value will be quoted
public void setAuthParameter(java.lang.String name,
java.lang.String value)
name - The name of the parameter to set.value - The new value for this parameter.
The value will be quoted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||