public interface MessageContext
Modifier and Type | Method and Description |
---|---|
AuthenticationHandler |
getAuthenticationHandler() |
String |
getHelo() |
SocketAddress |
getRemoteAddress() |
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()
AuthenticationHandler getAuthenticationHandler()
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–2019. All rights reserved.