public interface AuthorizationHeader extends Parameters, Header
This header field, along with Proxy-Authorization, breaks the general rules about multiple header field values. Although not a comma- separated list, this header field name may be present multiple times, and MUST NOT be combined into a single header line.
For Example:
Authorization: Digest username="Alice", realm="atlanta.com",
nonce="84a4cc6f3082121f32b42a2187831a9e",
response="7587245234b3434cc3412213e5f113a5432"
Parameters
,
WWWAuthenticateHeader
,
ProxyAuthorizationHeader
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of AuthorizationHeader
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Returns the Algorithm value of this AuthorizationHeader.
|
String |
getCNonce()
Returns the CNonce value of this AuthorizationHeader.
|
String |
getNonce()
Returns the Nonce value of this AuthorizationHeader.
|
int |
getNonceCount()
Returns the Nonce Count value of this AuthorizationHeader.
|
String |
getOpaque()
Returns the Opaque value of this AuthorizationHeader.
|
String |
getQop()
Returns the Qop value of this AuthorizationHeader.
|
String |
getRealm()
Returns the Realm value of this AuthorizationHeader.
|
String |
getResponse()
Returns the Response value of this AuthorizationHeader.
|
String |
getScheme()
Returns the scheme of the Response information for this AuthorizationHeader.
|
URI |
getURI()
Returns the DigestURI value of this AuthorizationHeader.
|
String |
getUsername()
Returns the Username value of this AuthorizationHeader.
|
void |
setAlgorithm(String algorithm)
Sets the Algorithm of the AuthorizationHeader to the new
algorithm parameter value.
|
void |
setCNonce(String cNonce)
Sets the CNonce of the AuthorizationHeader to the cNonce
parameter value.
|
void |
setNonce(String nonce)
Sets the Nonce of the AuthorizationHeader to the nonce
parameter value.
|
void |
setNonceCount(int nonceCount)
Sets the Nonce Count of the AuthorizationHeader to the nonceCount
parameter value.
|
void |
setOpaque(String opaque)
Sets the Opaque value of the AuthorizationHeader to the new
opaque parameter value.
|
void |
setQop(String qop)
Sets the MessageQop value of the AuthorizationHeader to the new
qop parameter value.
|
void |
setRealm(String realm)
Sets the Realm of the AuthorizationHeader to the realm
parameter value.
|
void |
setResponse(String response)
Sets the Response of the AuthorizationHeader to the new response
parameter value.
|
void |
setScheme(String scheme)
Sets the scheme of the Response information for this AuthorizationHeader.
|
void |
setURI(URI uri)
Sets the URI of the AuthorizationHeader to the uri
parameter value.
|
void |
setUsername(String username)
Sets the Username of the AuthorizationHeader to the username
parameter value.
|
getParameter, getParameterNames, removeParameter, setParameter
static final String NAME
void setScheme(String scheme)
scheme
- - the new string value that identifies the response
information scheme.String getScheme()
void setRealm(String realm) throws ParseException
realm
- the new Realm String of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the realm.String getRealm()
void setUsername(String username) throws ParseException
username
- the new Username String of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the username.String getUsername()
void setNonce(String nonce) throws ParseException
nonce
- - the new nonce String of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the nonce value.String getNonce()
void setURI(URI uri)
uri
- - the new URI of this AuthorizationHeader.URI getURI()
void setResponse(String response) throws ParseException
response
- - the new response String of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the Response.String getResponse()
void setAlgorithm(String algorithm) throws ParseException
algorithm
- - the new algorithm String of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the algorithm value.String getAlgorithm()
void setCNonce(String cNonce) throws ParseException
cNonce
- - the new cNonce String of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the cNonce value.String getCNonce()
void setOpaque(String opaque) throws ParseException
opaque
- - the new Opaque string of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the opaque value.String getOpaque()
void setQop(String qop) throws ParseException
qop
- - the new Qop string of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the Qop value.String getQop()
void setNonceCount(int nonceCount) throws ParseException
nonceCount
- - the new nonceCount integer of this AuthorizationHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the nonceCount value.int getNonceCount()
Copyright © 2016. All Rights Reserved.