public abstract class AuthenticationHeader extends ParametersHeader
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM |
static String |
CK |
static String |
CNONCE |
static String |
DOMAIN |
static String |
IK |
static String |
INTEGRITY_PROTECTED |
static String |
NC |
static String |
NONCE |
static String |
OPAQUE |
static String |
QOP |
static String |
REALM |
static String |
RESPONSE |
protected String |
scheme |
static String |
SIGNATURE |
static String |
SIGNED_BY |
static String |
STALE |
static String |
URI |
static String |
USERNAME |
duplicates, parameters
headerName
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE
Constructor and Description |
---|
AuthenticationHeader() |
AuthenticationHeader(String name) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
encodeBody(StringBuilder buffer)
Encode in canonical form.
|
String |
getAlgorithm()
Returns the Algorithm value of this WWWAuthenicateHeader.
|
String |
getCK() |
String |
getCNonce()
Get the CNonce.
|
String |
getDomain()
Returns the Domain value of this WWWAuthenicateHeader.
|
String |
getIK() |
String |
getIntegrityProtected() |
String |
getNonce()
Returns the Nonce value of this WWWAuthenicateHeader.
|
int |
getNonceCount() |
String |
getOpaque()
Returns the Opaque value of this WWWAuthenicateHeader.
|
String |
getQop()
Returns the Qop value of this WWWAuthenicateHeader.
|
String |
getRealm()
Returns the Realm value of this WWWAuthenicateHeader.
|
String |
getResponse()
Get the RESPONSE value (or null if it does not exist).
|
String |
getScheme()
Returns the scheme of the challenge information for this
AuthenticationHeaderHeader.
|
URI |
getURI()
Returns the URI value of this WWWAuthenicateHeader, for example
DigestURI.
|
String |
getUsername()
Returns the Username value of this AuthorizationHeader.
|
boolean |
isStale()
Returns the boolean value of the state paramater of this
WWWAuthenicateHeader.
|
void |
setAlgorithm(String algorithm)
Sets the Algorithm of the WWWAuthenicateHeader to the new algorithm
parameter value.
|
void |
setChallenge(Challenge challenge)
This is only used for the parser interface.
|
void |
setCK(String ck) |
void |
setCNonce(String cnonce)
Set the CNonce.
|
void |
setDomain(String domain)
Sets the Domain of the WWWAuthenicateHeader to the domain
parameter value.
|
void |
setIK(String ik) |
void |
setIntegrityProtected(String integrityProtected) |
void |
setNonce(String nonce)
Sets the Nonce of the WWWAuthenicateHeader to the nonce
parameter value.
|
void |
setNonceCount(int param)
Set the nonce count pakrameter.
|
void |
setOpaque(String opaque)
Sets the Opaque value of the WWWAuthenicateHeader to the new opaque
parameter value.
|
void |
setParameter(String name,
String value)
set the specified parameter.
|
void |
setQop(String qop)
Sets the Qop value of the WWWAuthenicateHeader to the new qop
parameter value.
|
void |
setRealm(String realm)
Sets the Realm of the WWWAuthenicateHeader to the realm
parameter value.
|
void |
setResponse(String response)
Set the Response.
|
void |
setScheme(String scheme)
Sets the scheme of the challenge information for this
AuthenticationHeaderHeader.
|
void |
setStale(boolean stale)
Sets the value of the stale parameter of the WWWAuthenicateHeader to the
stale parameter value.
|
void |
setURI(URI uri)
Sets the URI of the WWWAuthenicateHeader to the uri parameter
value.
|
void |
setUsername(String username)
Sets the Username of the AuthorizationHeader to the username
parameter value.
|
clone, equalParameters, getMultiParameter, getMultiParameterNames, getMultiParameters, getMultiParameterValue, getNameValue, getParameter, getParameter, getParameterAsBoolean, getParameterAsFloat, getParameterAsHexInt, getParameterAsInt, getParameterAsLong, getParameterAsURI, getParameterNames, getParameters, getParameterValue, hasMultiParameter, hasMultiParameters, hasParameter, hasParameters, removeMultiParameter, removeMultiParameters, removeParameter, removeParameters, setMultiParameter, setMultiParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setQuotedParameter
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString
dbgPrint, debugDump, debugDump, equals, match
dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
public static final String DOMAIN
public static final String REALM
public static final String OPAQUE
public static final String ALGORITHM
public static final String QOP
public static final String STALE
public static final String SIGNATURE
public static final String RESPONSE
public static final String SIGNED_BY
public static final String NC
public static final String URI
public static final String USERNAME
public static final String CNONCE
public static final String NONCE
public static final String IK
public static final String CK
public static final String INTEGRITY_PROTECTED
protected String scheme
public AuthenticationHeader(String name)
public AuthenticationHeader()
public void setParameter(String name, String value) throws ParseException
setParameter
in interface Parameters
setParameter
in class ParametersHeader
name
- --
name of the parametervalue
- --
value of the parameter.ParseException
- which signals that an error has been reached
unexpectedly while parsing the parameter name or value.public void setChallenge(Challenge challenge)
challenge
- --
the challenge from which the parameters are extracted.public StringBuilder encodeBody(StringBuilder buffer)
encodeBody
in class ParametersHeader
public void setScheme(String scheme)
scheme
- -
the new string value that identifies the challenge information
scheme.public String getScheme()
public void setRealm(String realm) throws ParseException
realm
- the new Realm String of this WWWAuthenicateHeader.ParseException
- which signals that an error has been reached unexpectedly
while parsing the realm.public String getRealm()
public void setNonce(String nonce) throws ParseException
nonce
- -
the new nonce String of this WWWAuthenicateHeader.ParseException
- which signals that an error has been reached unexpectedly
while parsing the nonce value.public String getNonce()
public void setURI(URI uri)
uri
- -
the new URI of this AuthenicationHeader.public URI getURI()
public void setAlgorithm(String algorithm) throws ParseException
algorithm
- -
the new algorithm String of this WWWAuthenicateHeader.ParseException
- which signals that an error has been reached unexpectedly
while parsing the algorithm value.public String getAlgorithm()
public void setQop(String qop) throws ParseException
qop
- -
the new Qop string of this WWWAuthenicateHeader.ParseException
- which signals that an error has been reached unexpectedly
while parsing the Qop value.public String getQop()
public void setOpaque(String opaque) throws ParseException
opaque
- -
the new Opaque string of this WWWAuthenicateHeader.ParseException
- which signals that an error has been reached unexpectedly
while parsing the opaque value.public String getOpaque()
public void setDomain(String domain) throws ParseException
domain
- -
the new Domain string of this WWWAuthenicateHeader.ParseException
- which signals that an error has been reached unexpectedly
while parsing the domain.public String getDomain()
public void setStale(boolean stale)
stale
- -
the Boolean.valueOf value of the stale parameter.public boolean isStale()
public void setCNonce(String cnonce) throws ParseException
cnonce
- --
a nonce string.ParseException
public String getCNonce()
public int getNonceCount()
public void setNonceCount(int param) throws ParseException
ParseException
public String getResponse()
public void setResponse(String response) throws ParseException
response
- to set.ParseException
public String getUsername()
public 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.public void setIK(String ik) throws ParseException
ParseException
public String getIK()
public void setCK(String ck) throws ParseException
ParseException
public String getCK()
public void setIntegrityProtected(String integrityProtected) throws ParseException
ParseException
public String getIntegrityProtected()
Copyright © 2016. All Rights Reserved.