static AuthScope
    uriToAuthScope(URI uri)
    {
        assert (uri != null);
        return new AuthScope(uri.getHost(), uri.getPort(), AuthScope.ANY_REALM, uri.getScheme());
    }
static AuthScope
    uriToAuthScope(URI uri)
    {
        assert (uri != null);
        return new AuthScope(uri.getHost(), uri.getPort(), AuthScope.ANY_REALM, uri.getScheme());
    }
static AuthScope uriToAuthScope ( URI uri ) { assert ( uri != null ) ; return new AuthScope ( uri . getHost ( ) , uri . getPort ( ) , AuthScope . ANY_REALM , uri . getScheme ( ) ) ; }
Create an AuthScope from a URI; remove any principal

@param uri to convert
@returns an AuthScope instance
Create an AuthScope from a URI ; remove any principal