public interface MessageContext
| Modifier and Type | Method and Description |
|---|---|
Optional<AuthenticationHandler> |
getAuthenticationHandler() |
Optional<String> |
getHelo() |
SocketAddress |
getRemoteAddress() |
default String |
getSessionId()
Returns the unique id of the session associated with this message.
|
SMTPServer |
getSMTPServer() |
Certificate[] |
getTlsPeerCertificates()
Returns the identity of the peer which was established as part of the TLS handshake
as defined by
SSLSession.getPeerCertificates(). |
SMTPServer getSMTPServer()
SocketAddress getRemoteAddress()
Note that the returned object is always an instance of InetSocketAddress so you
can cast the returned object to that class for more information. In subethasmtp 6.x the
method return type will be changed to InetSocketAddress.
default String getSessionId()
Optional<AuthenticationHandler> getAuthenticationHandler()
Optional<String> getHelo()
Certificate[] getTlsPeerCertificates()
SSLSession.getPeerCertificates().
In order to get this information, override SMTPServer.createSSLSocket(java.net.Socket) and call
setNeedClientAuth(true) on the created socket.SSLSession.getPeerCertificates()Copyright © 2006–2024. All rights reserved.