当前位置: 技术问答>java相关
路人甲来拿分
来源: 互联网 发布时间:2015-04-11
本文导语: 路人甲来拿分,感谢你的email。 | 或者Session的方法 requestPasswordAuthentication public PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress addr, ...
路人甲来拿分,感谢你的email。
|
或者Session的方法
requestPasswordAuthentication
public PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress addr,
int port,
java.lang.String protocol,
java.lang.String prompt,
java.lang.String defaultUserName)
Call back to the application to get the needed user name and password. The application should put up a dialog something like:
Connecting to mail service on host , port .
User Name:
Password:
Parameters:
addr - InetAddress of the host. may be null.
protocol - protocol scheme (e.g. imap, pop3, etc.)
prompt - any additional String to show as part of the prompt; may be null.
defaultUserName - the default username. may be null.
Returns:
the authentication which was collected by the authenticator; may be null.
requestPasswordAuthentication
public PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress addr,
int port,
java.lang.String protocol,
java.lang.String prompt,
java.lang.String defaultUserName)
Call back to the application to get the needed user name and password. The application should put up a dialog something like:
Connecting to mail service on host , port .
User Name:
Password:
Parameters:
addr - InetAddress of the host. may be null.
protocol - protocol scheme (e.g. imap, pop3, etc.)
prompt - any additional String to show as part of the prompt; may be null.
defaultUserName - the default username. may be null.
Returns:
the authentication which was collected by the authenticator; may be null.
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。