common/src/main/java/HTTPClient/DefaultAuthHandler.java
/**
     * For Digest authentication we need to set the uri, response and
     * opaque parameters. For "Basic" and "SOCKS5" nothing is done.
     */
For Digest authentication we need to set the uri, response and
opaque parameters. For "Basic" and "SOCKS5" nothing is done.
For Digest authentication we need to set the uri response and opaque parameters . For " Basic " and " SOCKS5 " nothing is done .
public AuthorizationInfo fixupAuthInfo(AuthorizationInfo info,
					   RoRequest req,
					   AuthorizationInfo challenge,
					   RoResponse resp)
		    throws AuthSchemeNotImplException
    {
	if (info.getScheme().equalsIgnoreCase("Basic")  ||
	    info.getScheme().equalsIgnoreCase("SOCKS5"))
	    return info;
	else if (!info.getScheme().equalsIgnoreCase("Digest")&&
		 !info.getScheme().equalsIgnoreCase("NTLM"))
	    throw new AuthSchemeNotImplException(info.getScheme());
	if (Log.isEnabled(Log.AUTH))
	    Log.write(Log.AUTH, "Auth:  fixing up Authorization for host " +
				info.getHost()+":"+info.getPort() +
				"; scheme: " + info.getScheme() +
				"; realm: " + info.getRealm());
	if (info.getScheme().equalsIgnoreCase("Digest"))
	    return digest_fixup(info, req, challenge, resp);
	else
	    return ntlm_fixup(info, req, challenge, resp);
    }
public AuthorizationInfo fixupAuthInfo ( AuthorizationInfo info , RoRequest req , AuthorizationInfo challenge , RoResponse resp ) throws AuthSchemeNotImplException { if ( info . getScheme ( ) . equalsIgnoreCase ( "Basic" ) || info . getScheme ( ) . equalsIgnoreCase ( "SOCKS5" ) ) return info ; else if ( ! info . getScheme ( ) . equalsIgnoreCase ( "Digest" ) && ! info . getScheme ( ) . equalsIgnoreCase ( "NTLM" ) ) throw new AuthSchemeNotImplException ( info . getScheme ( ) ) ; if ( Log . isEnabled ( Log . AUTH ) ) Log . write ( Log . AUTH , "Auth:  fixing up Authorization for host " + info . getHost ( ) + ":" + info . getPort ( ) + "; scheme: " + info . getScheme ( ) + "; realm: " + info . getRealm ( ) ) ; if ( info . getScheme ( ) . equalsIgnoreCase ( "Digest" ) ) return digest_fixup ( info , req , challenge , resp ) ; else return ntlm_fixup ( info , req , challenge , resp ) ; }
For Digest authentication we need to set the uri, response and
 opaque parameters.
For Digest authentication we need to set the uri response and opaque parameters .
// nothing to do for Basic and SOCKS5 schemes