public final class AuthenticationInfo extends ParametersHeader implements AuthenticationInfoHeader
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
NAME
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 |
---|
AuthenticationInfo()
Default contstructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(NameValue nv) |
protected StringBuilder |
encodeBody(StringBuilder buffer)
Value of header encoded in canonical form.
|
String |
getAuthenticationInfo()
Returns the AuthenticationInfo value of this AuthenticationInfoHeader.
|
NameValue |
getAuthInfo(String name)
Get the name value pair for a given authentication info parameter.
|
String |
getCNonce()
Returns the CNonce value of this AuthenticationInfoHeader.
|
String |
getNextNonce()
Returns the nextNonce value of this AuthenticationInfoHeader.
|
int |
getNonceCount()
Returns the Nonce Count value of this AuthenticationInfoHeader.
|
String |
getQop()
Returns the messageQop value of this AuthenticationInfoHeader.
|
String |
getResponse()
Returns the Response value of this AuthenticationInfoHeader.
|
String |
getScheme()
Returns the authentication scheme of this AuthenticationInfoHeader.
|
String |
getSNum()
Returns the "snum" value of this AuthenticationInfoHeader.
|
String |
getSRand()
Returns the "srand" value of this AuthenticationInfoHeader.
|
String |
getTargetName()
Returns the "targetname" value of this AuthenticationInfoHeader.
|
void |
setCNonce(String cNonce)
Sets the CNonce of the AuthenticationInfoHeader to the cNonce
parameter value.
|
void |
setNextNonce(String nextNonce)
Sets the NextNonce of the AuthenticationInfoHeader to the nextNonce
parameter value.
|
void |
setNonceCount(int nonceCount)
Sets the Nonce Count of the AuthenticationInfoHeader to the nonceCount
parameter value.
|
void |
setParameter(String name,
String value)
Sets the value of the specified parameter.
|
void |
setQop(String qop)
Sets the Qop value of the AuthenticationInfoHeader to the new
qop parameter value.
|
void |
setResponse(String response)
Sets the Response of the
AuthenticationInfoHeader to the new response
parameter value.
|
void |
setScheme(String scheme)
Sets authentication scheme name of the AuthenticationInfoHeader to the scheme
parameter value.
|
void |
setSNum(String sNum)
Sets the SNum of the AuthenticationInfoHeader to the sNum
parameter value.
|
void |
setSRand(String sRand)
Sets the SRand of the AuthenticationInfoHeader to the sRand
parameter value.
|
void |
setTargetName(String targetName)
Sets the TargetName of the AuthenticationInfoHeader to the targetName
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
finalize, getClass, notify, notifyAll, wait, wait, wait
getParameter, getParameterNames, removeParameter
public void add(NameValue nv)
protected StringBuilder encodeBody(StringBuilder buffer)
encodeBody
in class ParametersHeader
public NameValue getAuthInfo(String name)
name
- is the name for which we want to retrieve the name value
list.public String getAuthenticationInfo()
public String getCNonce()
getCNonce
in interface AuthenticationInfoHeader
public String getNextNonce()
getNextNonce
in interface AuthenticationInfoHeader
public int getNonceCount()
getNonceCount
in interface AuthenticationInfoHeader
public String getQop()
getQop
in interface AuthenticationInfoHeader
public String getResponse()
getResponse
in interface AuthenticationInfoHeader
public String getSNum()
public String getSRand()
public String getTargetName()
public String getScheme()
public void setCNonce(String cNonce) throws ParseException
setCNonce
in interface AuthenticationInfoHeader
cNonce
- - the new cNonce String of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the cNonce value.public void setNextNonce(String nextNonce) throws ParseException
setNextNonce
in interface AuthenticationInfoHeader
nextNonce
- - the new nextNonce String of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the nextNonce value.public void setNonceCount(int nonceCount) throws ParseException
setNonceCount
in interface AuthenticationInfoHeader
nonceCount
- - the new nonceCount integer of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the nonceCount value.public void setQop(String qop) throws ParseException
setQop
in interface AuthenticationInfoHeader
qop
- - the new Qop string of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the Qop value.public void setResponse(String response) throws ParseException
setResponse
in interface AuthenticationInfoHeader
response
- - the new response String of this
AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the Response.public void setSNum(String sNum) throws ParseException
sNum
- - the new sNum String of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the sNum value.public void setSRand(String sRand) throws ParseException
sRand
- - the new sRand String of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the sRand value.public void setTargetName(String targetName) throws ParseException
targetName
- - the new targetName String of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the targetName value.public void setScheme(String scheme) throws ParseException
scheme
- - the new scheme String of this AuthenticationInfoHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the targetName value.public void setParameter(String name, String value) throws ParseException
ParametersHeader
setParameter
in interface Parameters
setParameter
in class ParametersHeader
name
- - a String specifying the parameter namevalue
- - a String specifying the parameter valueParseException
- which signals that an error has been reached
unexpectedly while parsing the parameter name or value.Copyright © 2017. All Rights Reserved.