public class HttpAuthHeader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BASIC |
static String |
BASIC_TOKEN
Possible HTTP-authentication header tokens to search for:
|
static int |
DIGEST |
static String |
DIGEST_TOKEN |
static int |
UNKNOWN |
Constructor and Description |
---|
HttpAuthHeader(String header)
Creates a new HTTP-authentication header object from the
input header string.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
String |
getNonce() |
String |
getOpaque() |
String |
getPassword() |
String |
getQop() |
String |
getRealm() |
int |
getScheme() |
boolean |
getStale() |
String |
getUsername() |
boolean |
isBasic() |
boolean |
isDigest() |
boolean |
isProxy() |
boolean |
isSupportedScheme() |
void |
setPassword(String password)
Sets the password string.
|
void |
setProxy()
Marks this header as a proxy authentication header.
|
void |
setUsername(String username)
Sets the username string.
|
public static final String BASIC_TOKEN
public static final String DIGEST_TOKEN
public static final int UNKNOWN
public static final int BASIC
public static final int DIGEST
public HttpAuthHeader(String header)
public boolean isProxy()
public void setProxy()
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public boolean isBasic()
public boolean isDigest()
public int getScheme()
public boolean getStale()
public String getRealm()
public String getNonce()
public String getOpaque()
public String getQop()
public String getAlgorithm()
public boolean isSupportedScheme()