|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.ParametersHeader
gov.nist.javax.sip.header.AuthenticationInfo
public final class AuthenticationInfo
Authentication info SIP Header.
Field Summary |
---|
Fields inherited from interface javax.sip.header.AuthenticationInfoHeader |
---|
NAME |
Fields inherited from interface gov.nist.javax.sip.header.SIPHeaderNames |
---|
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 Summary | |
---|---|
AuthenticationInfo()
Default contstructor. |
Method Summary | |
---|---|
void |
add(gov.nist.core.NameValue nv)
|
String |
getAuthenticationInfo()
Returns the AuthenticationInfo value of this AuthenticationInfoHeader. |
gov.nist.core.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. |
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. |
Methods inherited from class gov.nist.javax.sip.header.ParametersHeader |
---|
clone, getNameValue, getParameter, getParameterNames, getParameters, getParameterValue, hasParameter, hasParameters, removeParameter, removeParameters, setParameter, setParameters, setQuotedParameter |
Methods inherited from class gov.nist.javax.sip.header.SIPHeader |
---|
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString |
Methods inherited from class gov.nist.javax.sip.header.SIPObject |
---|
dbgPrint, debugDump, debugDump, equals, match |
Methods inherited from class gov.nist.core.GenericObject |
---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sip.header.Parameters |
---|
getParameter, getParameterNames, removeParameter |
Methods inherited from interface javax.sip.header.Header |
---|
clone, equals, getName, hashCode, toString |
Constructor Detail |
---|
public AuthenticationInfo()
Method Detail |
---|
public void add(gov.nist.core.NameValue nv)
public gov.nist.core.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 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 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 value
ParseException
- which signals that an error has been reached
unexpectedly while parsing the parameter name or value.
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |