Package org.miaixz.bus.core.net
Class NonAuthenticator
java.lang.Object
java.net.Authenticator
org.miaixz.bus.core.net.NonAuthenticator
账号密码形式的
Authenticator 实现- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PasswordAuthenticationstatic NonAuthenticator创建账号密码形式的Authenticator实现。Methods inherited from class java.net.Authenticator
getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
-
Constructor Details
-
NonAuthenticator
构造- Parameters:
user- 用户名pass- 密码
-
-
Method Details
-
of
创建账号密码形式的Authenticator实现。- Parameters:
user- 用户名pass- 密码- Returns:
- PassAuth
-
getPasswordAuthentication
- Overrides:
getPasswordAuthenticationin classAuthenticator
-