| 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 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected