| 程序包 | 说明 |
|---|---|
| javax.mail |
The JavaMail™ API
provides classes that model a mail system.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected PasswordAuthentication |
Authenticator.getPasswordAuthentication()
Called when password authentication is needed.
|
PasswordAuthentication |
Session.getPasswordAuthentication(URLName url)
Return any saved PasswordAuthentication for this (store or transport)
URLName.
|
PasswordAuthentication |
Session.requestPasswordAuthentication(InetAddress addr,
int port,
String protocol,
String prompt,
String defaultUserName)
Call back to the application to get the needed user name and password.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Session.setPasswordAuthentication(URLName url,
PasswordAuthentication pw)
Save a PasswordAuthentication for this (store or transport) URLName.
|
Copyright © 2021 Oracle. All rights reserved.