Code examples for UsernamePasswordCredentials

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
106:	UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(userName, userPassword); 
-
108:	httpClient.getCredentialsProvider().setCredentials(new AuthScope(webAppURL.getHost(), webAppURL.getPort(), DEPLOYMENT_REALM_NAME), credentials); 
Full Snippet Info
8
CodeRank
175:	((DefaultHttpClient) httpClient).getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY), 
176:	new UsernamePasswordCredentials(user, pass)); 
Full Snippet Info
7
CodeRank
269:	UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(user,pass); 
270:	this.httpClient.getCredentialsProvider().setCredentials(scope, credentials); 
Full Snippet Info
7
CodeRank
60:	UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(username, password); 
61:	client.getCredentialsProvider().setCredentials(new AuthScope(domainName, 443), credentials); 
Full Snippet Info
7
CodeRank
299:	client.getCredentialsProvider().setCredentials( 
-
301:	new UsernamePasswordCredentials(username, password)); 
Full Snippet Info
6
CodeRank
78:	httpClient.getCredentialsProvider().setCredentials( 
-
80:	new UsernamePasswordCredentials( getUsername(), getPassword() ) ); 
Full Snippet Info
6
CodeRank
69:	UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(username, password); 
70:	httpClient.getCredentialsProvider().setCredentials(authScope, credentials); 
Full Snippet Info
6
CodeRank
125:	credential.setCredentials( 
-
127:	new UsernamePasswordCredentials(login, password)); 
Full Snippet Info
6
CodeRank
267:	UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(user,pass); 
268:	this.httpClient.getCredentialsProvider().setCredentials(scope, credentials); 
Full Snippet Info
6
CodeRank
85:	client.getCredentialsProvider().setCredentials( 
-
88:	new UsernamePasswordCredentials(user, pass)); 
Full Snippet Info
6
CodeRank
42:	credProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT), 
43:	new UsernamePasswordCredentials(user, password)); 
Full Snippet Info
5
CodeRank
188:	Credentials credentials = new UsernamePasswordCredentials(user, password); 
189:	httpClient.getCredentialsProvider().setCredentials(authScope, credentials); 
Full Snippet Info
5
CodeRank
106:	((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials( 
-
108:	new UsernamePasswordCredentials(username, password)); 
Full Snippet Info
5
CodeRank
118:	UsernamePasswordCredentials upc = new UsernamePasswordCredentials(mUser, mPassword); 
-
121:	((AbstractHttpClient) httpClient).getCredentialsProvider().setCredentials(as, upc); 
Full Snippet Info
5
CodeRank
108:	Credentials mCredentials = new UsernamePasswordCredentials(arg0[0], arg0[1]); 
-
110:	mProvider.setCredentials(scope, mCredentials); 
Full Snippet Info
5
CodeRank
76:	Credentials creds = new UsernamePasswordCredentials(params.get("username"), params.get("password")); 
-
78:	httpClient.getCredentialsProvider().setCredentials(authscope, creds); 
Full Snippet Info
5
CodeRank
85:	client.getCredentialsProvider().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(tracksUser, tracksPassword)); 
Full Snippet Info
5
CodeRank
44:	UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(user, password); 
45:	httpClient.getCredentialsProvider().setCredentials(new AuthScope(null, -1), credentials); 
Full Snippet Info
5
CodeRank
71:	client.getCredentialsProvider().setCredentials(new AuthScope(host, portnum), new UsernamePasswordCredentials(username, password)); 
Full Snippet Info
5
CodeRank
191:	httpClient.getCredentialsProvider().setCredentials(new AuthScope(null, -1), 
192:	new UsernamePasswordCredentials(loginName, password)); 
Full Snippet Info
5
CodeRank