/** Sets the NextNonce of the AuthenticationInfoHeader to the <var>nextNonce</var> * parameter value. * * @param nextNonce - the new nextNonce String of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the nextNonce value. * @since v1.1 */ public void setNextNonce(String nextNonce) throws ParseException { this.setParameter(ParameterNames.NEXT_NONCE, nextNonce); }
/** Returns the CNonce value of this AuthenticationInfoHeader. * * @return the String representing the cNonce information, null if value is * not set. * @since v1.1 */ public String getCNonce() { return this.getParameter(ParameterNames.CNONCE); }
/** Returns the Nonce Count value of this AuthenticationInfoHeader. * * @return the integer representing the nonceCount information, -1 if value is * not set. * @since v1.1 */ public int getNonceCount() { return this.getParameterAsInt(ParameterNames.NONCE_COUNT); }
headerName(TokenTypes.AUTHENTICATION_INFO); AuthenticationInfo authenticationInfo = new AuthenticationInfo(); authenticationInfo.setHeaderName( SIPHeaderNames.AUTHENTICATION_INFO); authenticationInfo.setScheme(nv.getKey()); nv = super.nameValue(); authenticationInfo.setParameter(nv); this.lexer.SPorHT(); while (lexer.lookAhead(0) == ',') { authenticationInfo.setParameter(nv); this.lexer.SPorHT();
headerName(TokenTypes.AUTHENTICATION_INFO); AuthenticationInfo authenticationInfo = new AuthenticationInfo(); authenticationInfo.setHeaderName( SIPHeaderNames.AUTHENTICATION_INFO); authenticationInfo.setParameter(nv); this.lexer.SPorHT(); while (lexer.lookAhead(0) == ',') { authenticationInfo.setParameter(nv); this.lexer.SPorHT();
/** * Creates a new AuthenticationInfoHeader based on the newly supplied * response value. * * @param response - the new string value of the response. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the response value. * @return the newly created AuthenticationInfoHeader object. * @since v1.1 */ public AuthenticationInfoHeader createAuthenticationInfoHeader(String response) throws ParseException { if (response == null) throw new NullPointerException("null arg response"); AuthenticationInfo auth = new AuthenticationInfo(); auth.setResponse(response); return auth; }
/** * Returns the AuthenticationInfo value of this AuthenticationInfoHeader. * * * * @return the String representing the AuthenticationInfo * * * */ public String getAuthenticationInfo() { return this.encodeBody(new StringBuilder()).toString(); }
/** Sets the SNum of the AuthenticationInfoHeader to the <var>sNum</var> * parameter value. * * @param sNum - the new sNum String of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the sNum value. */ public void setSNum(String sNum) throws ParseException { this.setParameter(ParameterNames.SNUM, sNum); }
/** Returns the "targetname" value of this AuthenticationInfoHeader. * @return the String representing the targetname information. */ public String getTargetName() { return this.getParameter(ParameterNames.TARGET_NAME); }
/** Sets the SRand of the AuthenticationInfoHeader to the <var>sRand</var> * parameter value. * * @param sRand - the new sRand String of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the sRand value. */ public void setSRand(String sRand) throws ParseException { this.setParameter(ParameterNames.SRAND, sRand); }
/** Returns the Response value of this AuthenticationInfoHeader. * * @return the String representing the Response information. * @since v1.1 */ public String getResponse() { return this.getParameter(ParameterNames.RESPONSE_AUTH); }
/** Sets the CNonce of the AuthenticationInfoHeader to the <var>cNonce</var> * parameter value. * * @param cNonce - the new cNonce String of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the cNonce value. * @since v1.1 */ public void setCNonce(String cNonce) throws ParseException { this.setParameter(ParameterNames.CNONCE, cNonce); }
/** Returns the nextNonce value of this AuthenticationInfoHeader. * * @return the String representing the nextNonce * information, null if value is not set. * @since v1.1 */ public String getNextNonce() { return this.getParameter(ParameterNames.NEXT_NONCE); }
/** Sets the Qop value of the AuthenticationInfoHeader to the new * <var>qop</var> parameter value. * * @param qop - the new Qop string of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the Qop value. * @since v1.1 */ public void setQop(String qop) throws ParseException { this.setParameter(ParameterNames.QOP, qop); }
/** Returns the messageQop value of this AuthenticationInfoHeader. * * @return the string representing the messageQop information, null if the * value is not set. * @since v1.1 */ public String getQop() { return this.getParameter(ParameterNames.QOP); }
/** Sets the TargetName of the AuthenticationInfoHeader to the <var>targetName</var> * parameter value. * * @param targetName - the new targetName String of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the targetName value. */ public void setTargetName(String targetName) throws ParseException { this.setParameter(ParameterNames.TARGET_NAME, targetName); }
/** Returns the "srand" value of this AuthenticationInfoHeader. * @return the String representing the srand information. */ public String getSRand() { return this.getParameter(ParameterNames.SRAND); }
/** Sets the Response of the * AuthenticationInfoHeader to the new <var>response</var> * parameter value. * * @param response - the new response String of this * AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the Response. * @since v1.1 */ public void setResponse(String response) throws ParseException { this.setParameter(ParameterNames.RESPONSE_AUTH, response); }
/** Returns the "snum" value of this AuthenticationInfoHeader. * @return the String representing the snum information. */ public String getSNum() { return this.getParameter(ParameterNames.SNUM); }
/** Sets the Nonce Count of the AuthenticationInfoHeader to the <var>nonceCount</var> * parameter value. * * @param nonceCount - the new nonceCount integer of this AuthenticationInfoHeader. * @throws ParseException which signals that an error has been reached * unexpectedly while parsing the nonceCount value. * @since v1.1 */ public void setNonceCount(int nonceCount) throws ParseException { if (nonceCount < 0) throw new ParseException("bad value", 0); String nc = Integer.toHexString(nonceCount); String base = "00000000"; nc = base.substring(0, 8 - nc.length()) + nc; this.setParameter(ParameterNames.NC, nc); }