MCPcopy Create free account
hub / github.com/0x727/DropLabTools / MyAuthenticator

Class MyAuthenticator

src/main/java/com/droplab/Utils/HttpUtils.java:372–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370
371
372 static class MyAuthenticator extends Authenticator {
373 private String user = "";
374 private String password = "";
375
376 public MyAuthenticator(String user, String password) {
377 this.user = user;
378 this.password = password;
379 }
380
381 protected PasswordAuthentication getPasswordAuthentication() {
382 return new PasswordAuthentication(user, password.toCharArray());
383 }
384 }
385 /**
386 * 获取服务器信任
387 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected