Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit ac05d54

Browse files
committed
SMTPTransport.sasllogin should not be public
1 parent 6297054 commit ac05d54

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

doc/release/COMPAT.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ with this release of the JavaMail API.
2424
property "mail.mime.address.usecanonicalhostname" can be set to
2525
"false" to revert to the previous behavior.
2626

27+
- SMTPTransport.sasllogin no longer public
28+
29+
The SMTPTransport.sasllogin method should never have been
30+
declared public. It's used internally when SASL authentication
31+
is requested; applications should not use the method directly.
32+
2733

2834

2935
-- JavaMail 1.5.4 --

mail/src/main/java/com/sun/mail/smtp/SMTPTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ void doAuth(String host, String authzid, String user, String passwd)
11071107
* @return true for success
11081108
* @exception MessagingException for failures
11091109
*/
1110-
public boolean sasllogin(String[] allowed, String realm, String authzid,
1110+
private boolean sasllogin(String[] allowed, String realm, String authzid,
11111111
String u, String p) throws MessagingException {
11121112
String serviceHost;
11131113
if (useCanonicalHostName)

0 commit comments

Comments
 (0)