Code example for BasicScheme

0
 
                            if (authState.getAuthScheme() == null) {
                                AuthScope authScope = new AuthScope(
                                        targetHost.getHostName(),
                                        targetHost.getPort());
                                authState.setAuthScheme(new BasicScheme());
                                authState.setCredentials(creds);
                            } 
                        } 
                    }; 
 
                    dhc.addRequestInterceptor(preemptiveAuth, 0);
                } 
            } else { 
                Log.w(TDDatabase.TAG,
                        "Unable to parse user info, not setting credentials"); 
            } 
        } 
    } 
     
    protected void respondWithResult(final TDRemoteResult result) {