public interface ProxyConfig
In case a proxy is required, the properties "mail.smtp(s).socks.host" and "mail.smtp(s).socks.port" will be set.
As the underlying JavaMail framework only support anonymous SOCKS proxy servers for non-ssl connections, authenticated SOCKS5 proxy is made possible using an intermediary anonymous proxy server which relays the connection through an authenticated remote proxy server. Anonymous proxies are still handled by JavaMail's own time-tested proxy client implementation.
NOTE: Attempting to use a proxy and SSL SMTP authentication will result in an error, as the underlying JavaMail framework ignores any proxy settings for SSL connections.
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getPassword() |
@Nullable Integer |
getProxyBridgePort() |
@Nullable String |
getRemoteProxyHost() |
@Nullable Integer |
getRemoteProxyPort() |
@Nullable String |
getUsername() |
boolean |
requiresAuthentication() |
boolean |
requiresProxy() |
String |
toString() |
boolean requiresProxy()
true
if remoteProxyHost isn't empty.boolean requiresAuthentication()
true
if username isn't empty.@Nullable @Nullable Integer getProxyBridgePort()
@Nullable @Nullable String getRemoteProxyHost()
@Nullable @Nullable Integer getRemoteProxyPort()
@Nullable @Nullable String getUsername()
@Nullable @Nullable String getPassword()
Copyright © 2009–2023. All rights reserved.