public class InMemoryPasswords extends Object implements PasswordAuthenticator
PasswordAuthenticator.ResultCallback| 限定符和类型 | 字段和说明 |
|---|---|
private Map<String,String> |
usernameToPasswords |
| 构造器和说明 |
|---|
InMemoryPasswords() |
| 限定符和类型 | 方法和说明 |
|---|---|
InMemoryPasswords |
add(String username,
String password) |
void |
authenticate(HttpRequest request,
String username,
String password,
PasswordAuthenticator.ResultCallback callback,
Executor handlerExecutor) |
public InMemoryPasswords add(String username, String password)
public void authenticate(HttpRequest request, String username, String password, PasswordAuthenticator.ResultCallback callback, Executor handlerExecutor)
authenticate 在接口中 PasswordAuthenticatorCopyright © 2014. All rights reserved.