File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
core-module/src/main/java/org/simplejavamail/api/mailer
main/java/org/simplejavamail/mailer/internal
test/java/org/simplejavamail/mailer Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ public interface MailerRegularBuilder<T extends MailerRegularBuilder<?>> extends
112112 * @see <a href="https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html">Java / Jakarta Mail properties</a>
113113 * @see #withCustomSSLFactoryInstance(SSLSocketFactory)
114114 */
115- T withCustomSSLFactory (@ Nullable String factoryClass );
115+ T withCustomSSLFactoryClass (@ Nullable String factoryClass );
116116
117117 /**
118118 * Configures the session with the right property to use your own factory for obtaining SSL connections.
@@ -126,7 +126,7 @@ public interface MailerRegularBuilder<T extends MailerRegularBuilder<?>> extends
126126 * @param sslSocketFactoryInstance An instance of the {@link SSLSocketFactory} class.
127127 *
128128 * @see <a href="https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html">Java / Jakarta Mail properties</a>
129- * @see #withCustomSSLFactory (String)
129+ * @see #withCustomSSLFactoryClass (String)
130130 */
131131 @ Cli .ExcludeApi (reason = "This API is specifically for Java use" )
132132 T withCustomSSLFactoryInstance (@ Nullable SSLSocketFactory sslSocketFactoryInstance );
@@ -170,7 +170,7 @@ public interface MailerRegularBuilder<T extends MailerRegularBuilder<?>> extends
170170 TransportStrategy getTransportStrategy ();
171171
172172 /**
173- * @see #withCustomSSLFactory (String)
173+ * @see #withCustomSSLFactoryClass (String)
174174 */
175175 @ Nullable
176176 String getCustomSSLFactory ();
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public class MailerRegularBuilderImpl extends MailerGenericBuilderImpl<MailerReg
5353 private TransportStrategy transportStrategy ;
5454
5555 /**
56- * @see #withCustomSSLFactory (String)
56+ * @see #withCustomSSLFactoryClass (String)
5757 */
5858 private String customSSLFactory ;
5959
@@ -89,7 +89,7 @@ public MailerRegularBuilderImpl() {
8989 withTransportStrategy (assumeNonNull (ConfigLoader .<TransportStrategy >getProperty (TRANSPORT_STRATEGY )));
9090 }
9191 if (hasProperty (CUSTOM_SSLFACTORY_CLASS )) {
92- withCustomSSLFactory (assumeNonNull (ConfigLoader .getStringProperty (CUSTOM_SSLFACTORY_CLASS )));
92+ withCustomSSLFactoryClass (assumeNonNull (ConfigLoader .getStringProperty (CUSTOM_SSLFACTORY_CLASS )));
9393 }
9494 }
9595
@@ -169,10 +169,10 @@ public MailerRegularBuilderImpl withSMTPServerPassword(@Nullable final String pa
169169 }
170170
171171 /**
172- * @see MailerRegularBuilder#withCustomSSLFactory (String)
172+ * @see MailerRegularBuilder#withCustomSSLFactoryClass (String)
173173 */
174174 @ Override
175- public MailerRegularBuilderImpl withCustomSSLFactory (@ Nullable final String customSSLFactory ) {
175+ public MailerRegularBuilderImpl withCustomSSLFactoryClass (@ Nullable final String customSSLFactory ) {
176176 this .customSSLFactory = customSSLFactory ;
177177 return this ;
178178 }
Original file line number Diff line number Diff line change 2424import java .io .ByteArrayInputStream ;
2525import java .io .File ;
2626import java .io .IOException ;
27- import java .util .AbstractMap ;
2827import java .util .AbstractMap .SimpleEntry ;
2928import java .util .GregorianCalendar ;
3029import java .util .Properties ;
@@ -290,7 +289,7 @@ public void testDKIMPriming()
290289 public void testSSLSocketFactoryClassConfig () {
291290 final Mailer mailer = MailerBuilder
292291 .withSMTPServer ("host" , 25 , null , null )
293- .withCustomSSLFactory ("teh_class" )
292+ .withCustomSSLFactoryClass ("teh_class" )
294293 .buildMailer ();
295294
296295 final Session session = mailer .getSession ();
@@ -321,7 +320,7 @@ public void testSSLSocketFactoryCombinedConfig() {
321320 final Mailer mailer = MailerBuilder
322321 .withSMTPServer ("host" , 25 , null , null )
323322 .withCustomSSLFactoryInstance (mockFactory )
324- .withCustomSSLFactory ("teh_class" )
323+ .withCustomSSLFactoryClass ("teh_class" )
325324 .buildMailer ();
326325
327326 final Session session = mailer .getSession ();
You can’t perform that action at this time.
0 commit comments