类的用途
java.net.PasswordAuthentication
使用 PasswordAuthentication 的包
-
PasswordAuthentication 在 java.net 中的用法
java.net 中返回 PasswordAuthentication 的方法修饰符和类型方法描述protected PasswordAuthenticationAuthenticator.getPasswordAuthentication()需要密码授权时调用。static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme) 向已在系统中注册的验证器询问密码。static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) 向已在系统中注册的验证器询问密码。static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) 向给定的authenticator询问密码。static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) 向已在系统中注册的验证器询问密码。Authenticator.requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) 向此身份验证器询问密码。