httpservices/src/main/java/ucar/httpservices/HTTPSession.java
@Deprecated
    static public void
    setGlobalCredentialsProvider(CredentialsProvider provider, AuthScope scope)
            throws HTTPException
    {
        HTTPProviderFactory factory = new SingleProviderFactory(provider);
        setCredentialsProviderFactory(factory, scope);
    }
@Deprecated
    static public void
    setGlobalCredentialsProvider(CredentialsProvider provider, AuthScope scope)
            throws HTTPException
    {
        HTTPProviderFactory factory = new SingleProviderFactory(provider);
        setCredentialsProviderFactory(factory, scope);
    }
@ Deprecated static public void setGlobalCredentialsProvider ( CredentialsProvider provider , AuthScope scope ) throws HTTPException { HTTPProviderFactory factory = new SingleProviderFactory ( provider ) ; setCredentialsProviderFactory ( factory , scope ) ; }
This is the most general case

@param provider the credentials provider
@param scope    where to use it (i.e. on what host)
@throws HTTPException
This is the most general case