public class PassAuth extends Authenticator
Authenticator 实现。Authenticator.RequestorType| Modifier and Type | Method and Description |
|---|---|
protected PasswordAuthentication |
getPasswordAuthentication() |
static PassAuth |
of(String user,
char[] pass)
创建账号密码形式的
Authenticator 实现。 |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultpublic PassAuth(String user, char[] pass)
user - 用户名pass - 密码public static PassAuth of(String user, char[] pass)
Authenticator 实现。user - 用户名pass - 密码protected PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class AuthenticatorCopyright © 2025. All rights reserved.