public class UserPassAuthenticator extends Authenticator
Authenticator
Authenticator.RequestorType
Constructor and Description |
---|
UserPassAuthenticator(String user,
char[] pass)
构造
|
Modifier and Type | Method and Description |
---|---|
protected PasswordAuthentication |
getPasswordAuthentication() |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
public UserPassAuthenticator(String user, char[] pass)
user
- 用户名pass
- 密码protected PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class Authenticator
Copyright © 2024. All rights reserved.