public class UserPassAuthenticator extends Authenticator
Authenticator 实现。Authenticator.RequestorType| 构造器和说明 |
|---|
UserPassAuthenticator(String user,
char[] pass)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected PasswordAuthentication |
getPasswordAuthentication() |
static UserPassAuthenticator |
of(String user,
char[] pass)
创建账号密码形式的
Authenticator 实现。 |
public UserPassAuthenticator(String user, char[] pass)
user - 用户名pass - 密码public static UserPassAuthenticator of(String user, char[] pass)
Authenticator 实现。user - 用户名pass - 密码protected PasswordAuthentication getPasswordAuthentication()
Copyright © 2024. All rights reserved.