common/src/main/java/HTTPClient/DefaultAuthHandler.java
/**
     * @return the fixed info is stale=true; null otherwise
     */
@return the fixed info is stale=true; null otherwise
@return the fixed info is stale = true ; null otherwise
private static AuthorizationInfo digest_check_stale(
					      AuthorizationInfo challenge,
					      RoRequest req, RoResponse resp)
	    throws AuthSchemeNotImplException, IOException
    {
	AuthorizationInfo cred = null;
	NVPair[] params = challenge.getParams();
	for (int idx=0; idx<params.length; idx++)
	{
	    String name = params[idx].getName();
	    if (name.equalsIgnoreCase("stale")  &&
		params[idx].getValue().equalsIgnoreCase("true"))
	    {
		cred = AuthorizationInfo.getAuthorization(challenge, req, resp,
							  false, false);
		if (cred != null)	
		    return digest_fixup(cred, req, challenge, resp);
		break;			
	    }
	}
	return cred;
    }
private static AuthorizationInfo digest_check_stale ( AuthorizationInfo challenge , RoRequest req , RoResponse resp ) throws AuthSchemeNotImplException , IOException { AuthorizationInfo cred = null ; NVPair [ ] params = challenge . getParams ( ) ; for ( int idx = 0 ; idx < params . length ; idx ++ ) { String name = params [ idx ] . getName ( ) ; if ( name . equalsIgnoreCase ( "stale" ) && params [ idx ] . getValue ( ) . equalsIgnoreCase ( "true" ) ) { cred = AuthorizationInfo . getAuthorization ( challenge , req , resp , false , false ) ; if ( cred != null ) return digest_fixup ( cred , req , challenge , resp ) ; break ; } } return cred ; }
@return the fixed info is stale=true; null otherwise
@return the fixed info is stale = true ; null otherwise
// should always be the case // should never be reached