Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W 

A

accept(String, String) - Method in interface org.subethamail.smtp.helper.SimpleMessageListener
Called once for every RCPT TO during a SMTP exchange.
accept(String, String) - Method in interface org.subethamail.smtp.helper.SmarterMessageListener
Called once for every RCPT TO during a SMTP exchange.
accept(Session) - Method in class org.subethamail.smtp.internal.server.AcceptAllSessionHandler
 
accept(Session) - Method in class org.subethamail.smtp.internal.server.ConcurrentSessionsBySourceLimiter
 
accept(Session) - Method in interface org.subethamail.smtp.server.SessionHandler
This method is invoked on a session creation, before sending the SMTP greeting and can react rejecting the session.
accept(String, String) - Method in class org.subethamail.wiser.Wiser
Always accept everything
accept(String, String) - Method in interface org.subethamail.wiser.Wiser.Accepter
 
acceptAll() - Static method in interface org.subethamail.smtp.server.SessionHandler
 
AcceptAllSessionHandler - Class in org.subethamail.smtp.internal.server
A SessionHandler that doesn't perform any real work
accepted() - Method in class org.subethamail.smtp.server.SessionHandler.SessionAcceptance
 
accepter(Wiser.Accepter) - Static method in class org.subethamail.wiser.Wiser
 
accepter(Wiser.Accepter) - Method in class org.subethamail.wiser.Wiser.WiserBuilder
 
addCommand(Command) - Method in class org.subethamail.smtp.internal.server.CommandHandler
Adds or replaces the specified command.
addFactory(AuthenticationHandlerFactory) - Method in class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
addRecipient(String) - Method in class org.subethamail.smtp.server.Session
 
ArrayUtils - Class in org.subethamail.smtp.internal.util
 
ArrayUtils() - Constructor for class org.subethamail.smtp.internal.util.ArrayUtils
 
auth(String, MessageContext) - Method in interface org.subethamail.smtp.AuthenticationHandler
Initially called using an input string in the RFC2554 form: "AUTH [initial-response]".
AUTH_CANCEL_COMMAND - Static variable in class org.subethamail.smtp.internal.command.AuthCommand
 
AuthCommand - Class in org.subethamail.smtp.internal.command
 
AuthCommand() - Constructor for class org.subethamail.smtp.internal.command.AuthCommand
Creates a new instance of AuthCommand
authenticate() - Method in interface org.subethamail.smtp.client.Authenticator
 
authenticate() - Method in class org.subethamail.smtp.client.PlainAuthenticator
 
AuthenticationHandler - Interface in org.subethamail.smtp
The interface that enables challenge-response communication necessary for SMTP AUTH.
AuthenticationHandlerFactory - Interface in org.subethamail.smtp
The factory interface for creating authentication handlers.
authenticationHandlerFactory(AuthenticationHandlerFactory) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets authenticationHandlerFactory.
AuthenticationNotSupportedException - Exception in org.subethamail.smtp.client
Indicates that the server either does not support authentication at all or no authentication mechanism exists which is supported by both the server and the client.
AuthenticationNotSupportedException(String) - Constructor for exception org.subethamail.smtp.client.AuthenticationNotSupportedException
 
Authenticator - Interface in org.subethamail.smtp.client
An Authenticator is called by SmartClient after the initial EHLO command and negotiates the authentication of the user for example by issuing the SMTP AUTH command to the server.
available() - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 

B

backlog(int) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the Socket backlog which is the requested maximum number of pending connections on the socket.
BaseCommand - Class in org.subethamail.smtp.internal.server
 
BaseCommand(String, String) - Constructor for class org.subethamail.smtp.internal.server.BaseCommand
 
BaseCommand(String, String, String) - Constructor for class org.subethamail.smtp.internal.server.BaseCommand
 
BasicMessageHandler(MessageContext, BasicMessageListener, int) - Constructor for class org.subethamail.smtp.helper.BasicMessageHandlerFactory.BasicMessageHandler
 
BasicMessageHandlerFactory - Class in org.subethamail.smtp.helper
 
BasicMessageHandlerFactory(BasicMessageListener, int) - Constructor for class org.subethamail.smtp.helper.BasicMessageHandlerFactory
 
BasicMessageHandlerFactory.BasicMessageHandler - Class in org.subethamail.smtp.helper
 
BasicMessageListener - Interface in org.subethamail.smtp.helper
 
BasicSMTPServer - Class in org.subethamail.smtp.examples
 
BasicSMTPServer() - Constructor for class org.subethamail.smtp.examples.BasicSMTPServer
 
bdat(String, boolean) - Method in class org.subethamail.smtp.client.SmartClient
 
bdat(String) - Method in class org.subethamail.smtp.client.SmartClient
 
BdatCommand - Class in org.subethamail.smtp.internal.command
 
BdatCommand() - Constructor for class org.subethamail.smtp.internal.command.BdatCommand
 
BdatCommand.Bdat - Class in org.subethamail.smtp.internal.command
 
BdatInputStream - Class in org.subethamail.smtp.internal.io
 
BdatInputStream(InputStream, Session, long, boolean) - Constructor for class org.subethamail.smtp.internal.io.BdatInputStream
 
bdatLast(String) - Method in class org.subethamail.smtp.client.SmartClient
 
bindAddress(InetAddress) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
bindAddress(Optional<InetAddress>) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
build() - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
Builder() - Constructor for class org.subethamail.smtp.server.SMTPServer.Builder
 
buildResponse(String, CharSequence) - Static method in class org.subethamail.smtp.internal.util.SMTPResponseHelper
 
buildResponse(int, CharSequence) - Static method in class org.subethamail.smtp.internal.util.SMTPResponseHelper
 

C

close() - Method in class org.subethamail.smtp.client.SMTPClient
Logs but otherwise ignores errors
close() - Method in class org.subethamail.smtp.internal.io.CRLFTerminatedReader
 
close() - Method in class org.subethamail.smtp.internal.io.DeferredFileOutputStream
 
close() - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
close() - Method in class org.subethamail.smtp.internal.io.Utf8InputStreamReader
 
closeSocket() - Method in class org.subethamail.smtp.server.Session
Close the client socket if it is open
Command - Interface in org.subethamail.smtp.internal.server
Describes a SMTP command
CommandException - Exception in org.subethamail.smtp.internal.server
 
CommandException(String, Throwable) - Constructor for exception org.subethamail.smtp.internal.server.CommandException
 
CommandException(String) - Constructor for exception org.subethamail.smtp.internal.server.CommandException
 
CommandException() - Constructor for exception org.subethamail.smtp.internal.server.CommandException
 
CommandException(Throwable) - Constructor for exception org.subethamail.smtp.internal.server.CommandException
 
CommandHandler - Class in org.subethamail.smtp.internal.server
This class manages execution of a SMTP command.
CommandHandler() - Constructor for class org.subethamail.smtp.internal.server.CommandHandler
 
CommandHandler(Collection<Command>) - Constructor for class org.subethamail.smtp.internal.server.CommandHandler
Create a command handler with a specific set of commands.
CommandRegistry - Enum in org.subethamail.smtp.internal.server
Enumerates all the Commands made available in this release.
ConcurrentSessionsBySourceLimiter - Class in org.subethamail.smtp.internal.server
A SessionHandler to track and limit connection counts by remote addresses.
ConcurrentSessionsBySourceLimiter(int) - Constructor for class org.subethamail.smtp.internal.server.ConcurrentSessionsBySourceLimiter
Create a new ConcurrentSessionsBySourceLimiter with default reject message: "421 Too many connections, try again later".
ConcurrentSessionsBySourceLimiter(int, int, String) - Constructor for class org.subethamail.smtp.internal.server.ConcurrentSessionsBySourceLimiter
Create a new ConcurrentSessionsBySourceLimiter with custom reject message
connect(String, int) - Method in class org.subethamail.smtp.client.SmartClient
Connects to the specified server and issues the initial HELO command.
connect(String, int) - Method in class org.subethamail.smtp.client.SMTPClient
Establishes a connection to host and port.
connectionTimeout(int, TimeUnit) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
connectionTimeoutMs(int) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
Constants - Class in org.subethamail.smtp.internal
 
containsCommand(String) - Method in class org.subethamail.smtp.internal.server.CommandHandler
 
create() - Method in class org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
 
create() - Method in class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
create() - Method in class org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
 
create() - Method in interface org.subethamail.smtp.AuthenticationHandlerFactory
Create a fresh instance of your handler.
create(MessageContext) - Method in class org.subethamail.smtp.helper.BasicMessageHandlerFactory
 
create(MessageContext) - Method in class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
 
create(MessageContext) - Method in class org.subethamail.smtp.helper.SmarterMessageListenerAdapter
 
create(MessageContext) - Method in interface org.subethamail.smtp.MessageHandlerFactory
Called for the exchange of a single message during an SMTP conversation.
create() - Method in interface org.subethamail.smtp.server.SessionIdFactory
Returns a new identifier.
create() - Method in class org.subethamail.smtp.server.TimeBasedSessionIdFactory
 
create(SMTPServer.Builder) - Static method in class org.subethamail.wiser.Wiser
 
create() - Static method in class org.subethamail.wiser.Wiser
 
createAndConnect(String, int, String) - Static method in class org.subethamail.smtp.client.SmartClient
 
createAndConnect(String, int, Optional<SocketAddress>, String, Optional<Authenticator>) - Static method in class org.subethamail.smtp.client.SmartClient
 
createAndConnect(String, int) - Static method in class org.subethamail.smtp.client.SMTPClient
 
createAndConnect(String, int, Optional<String>) - Static method in class org.subethamail.smtp.client.SMTPClient
 
createServerSocket() - Method in interface org.subethamail.smtp.server.ServerSocketCreator
Returns an unbound server socket.
createSocket() - Method in class org.subethamail.smtp.client.SMTPClient
Returns a new unconnected socket.
createSSLSocket(Socket) - Method in class org.subethamail.smtp.server.SMTPServer
Create an SSL socket that wraps the existing socket.
createSSLSocket(Socket) - Method in interface org.subethamail.smtp.server.SSLSocketCreator
 
CRLFTerminatedReader - Class in org.subethamail.smtp.internal.io
A Reader for use with SMTP or other protocols in which lines must end with CRLF.
CRLFTerminatedReader(InputStream) - Constructor for class org.subethamail.smtp.internal.io.CRLFTerminatedReader
Constructs this CRLFTerminatedReader.
CRLFTerminatedReader.MaxLineLengthException - Exception in org.subethamail.smtp.internal.io
 
CRLFTerminatedReader.TerminationException - Exception in org.subethamail.smtp.internal.io
 

D

data(InputStream) - Method in class org.subethamail.smtp.helper.BasicMessageHandlerFactory.BasicMessageHandler
 
data(InputStream) - Method in interface org.subethamail.smtp.MessageHandler
Called when the DATA part of the SMTP exchange begins.
DataCommand - Class in org.subethamail.smtp.internal.command
 
DataCommand() - Constructor for class org.subethamail.smtp.internal.command.DataCommand
 
dataEnd() - Method in class org.subethamail.smtp.client.SmartClient
Last step after writing data
dataStart() - Method in class org.subethamail.smtp.client.SmartClient
Prelude to writing data
dataWrite(byte[], int) - Method in class org.subethamail.smtp.client.SmartClient
Actually write some data
dataWrite(byte[]) - Method in class org.subethamail.smtp.client.SmartClient
 
DEFAULT_CODE - Static variable in exception org.subethamail.smtp.RejectException
 
DEFAULT_MESSAGE - Static variable in exception org.subethamail.smtp.RejectException
 
DEFAULT_PORT - Static variable in class org.subethamail.smtp.examples.BasicSMTPServer
 
DeferredFileOutputStream - Class in org.subethamail.smtp.internal.io
This works like a ByteArrayOutputStream until a certain size is reached, then creates a temp file and acts like a buffered FileOutputStream.
DeferredFileOutputStream(int) - Constructor for class org.subethamail.smtp.internal.io.DeferredFileOutputStream
 
deliver(String, String, InputStream) - Method in interface org.subethamail.smtp.helper.SimpleMessageListener
When message data arrives, this method will be called for every recipient this listener accepted.
deliver(InputStream) - Method in interface org.subethamail.smtp.helper.SmarterMessageListener.Receiver
When message data arrives, this method will be called for every recipient this listener accepted.
deliver(String, String, InputStream) - Method in class org.subethamail.wiser.Wiser
Cache the messages in memory
done() - Method in class org.subethamail.smtp.helper.BasicMessageHandlerFactory.BasicMessageHandler
 
done() - Method in interface org.subethamail.smtp.helper.SmarterMessageListener.Receiver
Called at the end of the SMTP exchange, even if no data was delivered.
done() - Method in interface org.subethamail.smtp.MessageHandler
Called after all other methods are completed.
DotTerminatedInputStream - Class in org.subethamail.smtp.internal.io
An InputStream class that terminates the stream when it encounters a US-ASCII encoded dot CR LF byte sequence immediately following a CR LF line end.
DotTerminatedInputStream(InputStream) - Constructor for class org.subethamail.smtp.internal.io.DotTerminatedInputStream
A constructor for this object that takes a stream to be wrapped and a terminating character sequence.
DotTerminatedOutputStream - Class in org.subethamail.smtp.internal.io
DotTerminatedOutputStream makes possible to end mail data with a "CRLF .
DotTerminatedOutputStream(OutputStream) - Constructor for class org.subethamail.smtp.internal.io.DotTerminatedOutputStream
 
DotUnstuffingInputStream - Class in org.subethamail.smtp.internal.io
Removes the dot-stuffing happening during the NNTP and SMTP message transfer
DotUnstuffingInputStream(InputStream) - Constructor for class org.subethamail.smtp.internal.io.DotUnstuffingInputStream
 
DropConnectionException - Exception in org.subethamail.smtp
A type of RejectException that additionally causes the server to close the connection to the client.
DropConnectionException() - Constructor for exception org.subethamail.smtp.DropConnectionException
 
DropConnectionException(String) - Constructor for exception org.subethamail.smtp.DropConnectionException
 
DropConnectionException(int, String) - Constructor for exception org.subethamail.smtp.DropConnectionException
 
dumpMessage(PrintStream) - Method in class org.subethamail.wiser.WiserMessage
Dumps the rough contents of the message for debugging purposes
dumpMessages(PrintStream) - Method in class org.subethamail.wiser.Wiser
For debugging purposes, dumps a rough outline of the messages to the output stream.

E

EasyAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
This a convenient class that saves you setting up the factories that we know about; you can always add more afterwards.
EasyAuthenticationHandlerFactory(UsernamePasswordValidator) - Constructor for class org.subethamail.smtp.auth.EasyAuthenticationHandlerFactory
 
EhloCommand - Class in org.subethamail.smtp.internal.command
 
EhloCommand() - Constructor for class org.subethamail.smtp.internal.command.EhloCommand
 
EmailUtils - Class in org.subethamail.smtp.internal.util
 
enableTLS(boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
enableTLS() - Method in class org.subethamail.smtp.server.SMTPServer.Builder
If set to true, TLS will be supported.
equals(Object) - Method in class org.subethamail.smtp.internal.server.HelpMessage
 
equals(byte[], int, int, byte[], int, int) - Static method in class org.subethamail.smtp.internal.util.ArrayUtils
 
errorCode() - Method in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
If proxy negotiation was a success then returns 0 else returns the SMTP response code representing the reason for the negotiation not being accepted.
errorCode() - Method in class org.subethamail.smtp.server.SessionHandler.SessionAcceptance
If session was accepted then returns 0 else returns the SMTP response code representing the reason for the session not being accepted.
errorMessage - Variable in class org.subethamail.smtp.internal.command.BdatCommand.Bdat
 
errorMessage() - Method in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
If proxy negotiation was accepted then returns null else returns the message representing the reason for the negotiation not being accepted.
errorMessage() - Method in class org.subethamail.smtp.server.SessionHandler.SessionAcceptance
If session was accepted then returns null else returns the message representing the reason for the session not being accepted.
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.AuthCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.BdatCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.DataCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.EhloCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.ExpandCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.HelloCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.HelpCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.MailCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.NoopCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.QuitCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.ReceiptCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.ResetCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.StartTLSCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.command.VerifyCommand
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.server.BaseCommand
This is the main method that you need to override in order to implement a command.
execute(String, Session) - Method in interface org.subethamail.smtp.internal.server.Command
 
execute(String, Session) - Method in class org.subethamail.smtp.internal.server.RequireAuthCommandWrapper
execute(String, Session) - Method in class org.subethamail.smtp.internal.server.RequireTLSCommandWrapper
 
executorService(ExecutorService) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the executor service that will handle client connections.
ExpandCommand - Class in org.subethamail.smtp.internal.command
 
ExpandCommand() - Constructor for class org.subethamail.smtp.internal.command.ExpandCommand
 
extractEmailAddress(String, int) - Static method in class org.subethamail.smtp.internal.util.EmailUtils
Extracts the email address within a <> after a specified offset.
ExtraDotOutputStream - Class in org.subethamail.smtp.internal.io
Adds extra dot if dot occurs in message body at beginning of line (according to RFC1939) Compare also org.apache.james.smtpserver.SMTPInputStream
ExtraDotOutputStream(OutputStream) - Constructor for class org.subethamail.smtp.internal.io.ExtraDotOutputStream
Constructor that wraps an OutputStream.

F

FAIL - Static variable in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
Standard proxy negotiation failure
failure(int, String) - Static method in class org.subethamail.smtp.server.SessionHandler.SessionAcceptance
Returns a failed SessionHandler.accept(Session) result.
from(String) - Method in class org.subethamail.smtp.client.SmartClient
 
from(String) - Method in class org.subethamail.smtp.helper.BasicMessageHandlerFactory.BasicMessageHandler
 
from(String) - Method in interface org.subethamail.smtp.MessageHandler
Called first, after the MAIL FROM during a SMTP exchange.
fromAddressValidator(Predicate<String>) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Adds a validator that will be applied to the MAIL FROM email address.

G

getArgPredicate(String) - Method in class org.subethamail.smtp.internal.server.BaseCommand
 
getArgs(String) - Static method in class org.subethamail.smtp.internal.server.BaseCommand
 
getAsciiBytes(String) - Static method in class org.subethamail.smtp.internal.util.TextUtils
 
getAuthenticationHandler() - Method in interface org.subethamail.smtp.MessageContext
 
getAuthenticationHandler() - Method in class org.subethamail.smtp.server.Session
 
getAuthenticationHandlerFactory() - Method in class org.subethamail.smtp.server.SMTPServer
Returns the factor for authentication handling.
getAuthenticationMechanisms() - Method in class org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
 
getAuthenticationMechanisms() - Method in class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
getAuthenticationMechanisms() - Method in class org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
 
getAuthenticationMechanisms() - Method in interface org.subethamail.smtp.AuthenticationHandlerFactory
If your handler supports RFC 2554 at some degree, then it must return all the supported mechanisms here.
getAuthenticator() - Method in class org.subethamail.smtp.client.SmartClient
Returns the Authenticator object, which is used to authenticate this client to the server, or null, if no authentication is required.
getBacklog() - Method in class org.subethamail.smtp.server.SMTPServer
The backlog is the Socket backlog.
getBaseStream() - Method in class org.subethamail.smtp.internal.io.DotUnstuffingInputStream
Provide access to the base input stream.
getBindAddress() - Method in class org.subethamail.smtp.server.SMTPServer
empty means all interfaces
getBytes(String, String) - Static method in class org.subethamail.smtp.internal.util.TextUtils
 
getCode() - Method in class org.subethamail.smtp.client.SMTPClient.Response
 
getCode() - Method in exception org.subethamail.smtp.RejectException
 
getCommand(String) - Method in class org.subethamail.smtp.internal.server.CommandHandler
Returns the command object corresponding to the specified command name.
getCommand() - Method in enum org.subethamail.smtp.internal.server.CommandRegistry
 
getCommandHandler() - Method in class org.subethamail.smtp.server.SMTPServer
The CommandHandler manages handling the SMTP commands such as QUIT, MAIL, RCPT, DATA, etc.
getConnectionTimeout() - Method in class org.subethamail.smtp.server.SMTPServer
 
getData() - Method in class org.subethamail.wiser.WiserMessage
Get's the raw message DATA.
getDeclaredMessageSize() - Method in class org.subethamail.smtp.server.Session
 
getDisableReceivedHeaders() - Method in class org.subethamail.smtp.server.SMTPServer
 
getDisplayableLocalSocketAddress() - Method in class org.subethamail.smtp.server.SMTPServer
 
getEnableTLS() - Method in class org.subethamail.smtp.server.SMTPServer
 
getEnvelopeReceiver() - Method in class org.subethamail.wiser.WiserMessage
Get's the RCPT TO:
getEnvelopeSender() - Method in class org.subethamail.wiser.WiserMessage
Get's the MAIL FROM:
getErrorResponse() - Method in exception org.subethamail.smtp.RejectException
 
getExecutorService() - Method in class org.subethamail.smtp.server.SMTPServer
 
getExtensions() - Method in class org.subethamail.smtp.client.SmartClient
Returns the SMTP extensions supported by the server.
getFormattedTopicList(SMTPServer) - Method in class org.subethamail.smtp.internal.command.HelpCommand
 
getHelo() - Method in interface org.subethamail.smtp.MessageContext
 
getHelo() - Method in class org.subethamail.smtp.server.Session
Simple state
getHeloHost() - Method in class org.subethamail.smtp.client.SmartClient
Returns the HELO name of this system.
getHelp() - Method in class org.subethamail.smtp.internal.server.BaseCommand
 
getHelp() - Method in interface org.subethamail.smtp.internal.server.Command
 
getHelp(String) - Method in class org.subethamail.smtp.internal.server.CommandHandler
 
getHelp() - Method in class org.subethamail.smtp.internal.server.RequireAuthCommandWrapper
getHelp() - Method in class org.subethamail.smtp.internal.server.RequireTLSCommandWrapper
 
getHideTLS() - Method in class org.subethamail.smtp.server.SMTPServer
 
getHostName() - Method in class org.subethamail.smtp.server.SMTPServer
 
getHostPort() - Method in class org.subethamail.smtp.client.SMTPClient
 
getIdentity() - Method in interface org.subethamail.smtp.AuthenticationHandler
If the authentication process was successful, this returns the identity of the user.
getImplementation() - Static method in class org.subethamail.smtp.Version
 
getInputStream() - Method in class org.subethamail.smtp.internal.io.DeferredFileOutputStream
Closes the output stream and creates an InputStream on the same data.
getLocalSocketAddress() - Method in class org.subethamail.smtp.client.SMTPClient
Returns the local socket address.
getMaxConnections() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMaxMessageSize() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMaxRecipients() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMessage() - Method in class org.subethamail.smtp.client.SMTPClient.Response
 
getMessageHandler() - Method in class org.subethamail.smtp.server.Session
 
getMessageHandlerFactory() - Method in class org.subethamail.smtp.server.SMTPServer
 
getMessages() - Method in class org.subethamail.wiser.Wiser
Returns the list of WiserMessages.
getMimeMessage() - Method in class org.subethamail.wiser.WiserMessage
Generate a JavaMail MimeMessage.
getName() - Method in class org.subethamail.smtp.internal.server.BaseCommand
 
getName() - Method in interface org.subethamail.smtp.internal.server.Command
Returns the name of the command in upper case.
getName() - Method in class org.subethamail.smtp.internal.server.HelpMessage
 
getName() - Method in class org.subethamail.smtp.internal.server.RequireAuthCommandWrapper
Returns the name of the command in upper case.
getName() - Method in class org.subethamail.smtp.internal.server.RequireTLSCommandWrapper
 
getNumberOfConnections() - Method in class org.subethamail.smtp.internal.server.ServerThread
 
getPort() - Method in class org.subethamail.smtp.server.SMTPServer
 
getPortAllocated() - Method in class org.subethamail.smtp.server.SMTPServer
 
getProxiedAddress() - Method in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
 
getRawInput() - Method in class org.subethamail.smtp.server.Session
 
getReader() - Method in class org.subethamail.smtp.server.Session
 
getRealRemoteAddress() - Method in class org.subethamail.smtp.server.Session
Returns the real connection remote address as seen by socket.
getRecipientCount() - Method in class org.subethamail.smtp.client.SmartClient
 
getRecipientCount() - Method in class org.subethamail.smtp.server.Session
 
getRemoteAddress() - Method in interface org.subethamail.smtp.MessageContext
 
getRemoteAddress() - Method in class org.subethamail.smtp.server.Session
 
getRequireAuth() - Method in class org.subethamail.smtp.server.SMTPServer
 
getRequireTLS() - Method in class org.subethamail.smtp.server.SMTPServer
 
getResponse() - Method in exception org.subethamail.smtp.client.SMTPException
 
getServer() - Method in class org.subethamail.smtp.server.Session
 
getServer() - Method in class org.subethamail.wiser.Wiser
 
getServerThreadName() - Method in class org.subethamail.smtp.server.SMTPServer
 
getSessionHandler() - Method in class org.subethamail.smtp.server.SMTPServer
 
getSessionId() - Method in interface org.subethamail.smtp.MessageContext
Returns the unique id of the session associated with this message.
getSessionId() - Method in class org.subethamail.smtp.server.Session
Returns an identifier of the session which is reasonably unique within an extended time period.
getSessionIdFactory() - Method in class org.subethamail.smtp.server.SMTPServer
 
getShowAuthCapabilitiesBeforeSTARTTLS() - Method in class org.subethamail.smtp.server.SMTPServer
 
getSingleRecipient() - Method in class org.subethamail.smtp.server.Session
Returns the first accepted recipient if there is exactly one accepted recipient, otherwise it returns null.
getSMTPServer() - Method in interface org.subethamail.smtp.MessageContext
 
getSMTPServer() - Method in class org.subethamail.smtp.server.Session
 
getSocket() - Method in class org.subethamail.smtp.server.Session
This method is only used by the start tls command
getSoftwareName() - Method in class org.subethamail.smtp.server.SMTPServer
The string reported to the public as the software running here.
getSpecification() - Static method in class org.subethamail.smtp.Version
 
getStringUtf8(byte[]) - Static method in class org.subethamail.smtp.internal.util.TextUtils
Converts the specified bytes to String using UTF-8 encoding.
getTlsPeerCertificates() - Method in interface org.subethamail.smtp.MessageContext
Returns the identity of the peer which was established as part of the TLS handshake as defined by SSLSession.getPeerCertificates().
getTlsPeerCertificates() - Method in class org.subethamail.smtp.server.Session
 
getValidator() - Method in class org.subethamail.smtp.auth.EasyAuthenticationHandlerFactory
 
getVerbs() - Method in class org.subethamail.smtp.internal.server.CommandHandler
 

H

handle(InputStream, OutputStream, Session) - Method in interface org.subethamail.smtp.internal.proxy.ProxyHandler
 
handle(InputStream, OutputStream, Session) - Method in class org.subethamail.smtp.internal.proxy.ProxyProtocolV1Handler
 
handle(InputStream, OutputStream, Session) - Method in class org.subethamail.smtp.internal.proxy.ProxyProtocolV1V2Handler
 
handle(InputStream, OutputStream, Session) - Method in class org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler
 
handleCommand(Session, String) - Method in class org.subethamail.smtp.internal.server.CommandHandler
 
hashCode() - Method in class org.subethamail.smtp.internal.server.HelpMessage
 
hasTooManyConnections() - Method in class org.subethamail.smtp.internal.server.ServerThread
 
HelloCommand - Class in org.subethamail.smtp.internal.command
 
HelloCommand() - Constructor for class org.subethamail.smtp.internal.command.HelloCommand
 
HelpCommand - Class in org.subethamail.smtp.internal.command
Provides a help system for people to interact with.
HelpCommand() - Constructor for class org.subethamail.smtp.internal.command.HelpCommand
 
HelpMessage - Class in org.subethamail.smtp.internal.server
 
HelpMessage(String, String, String) - Constructor for class org.subethamail.smtp.internal.server.HelpMessage
 
HelpMessage(String, String) - Constructor for class org.subethamail.smtp.internal.server.HelpMessage
 
HexUtils - Class in org.subethamail.smtp.internal.util
Hex string manipulation utils.
hideTLS(boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
If set to true, TLS will not be advertised in the EHLO string.
hideTLS() - Method in class org.subethamail.smtp.server.SMTPServer.Builder
If set to true, TLS will not be advertised in the EHLO string.
hostName(String) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 

I

insertReceivedHeaders(boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
insertReceivedHeaders() - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
INSTANCE - Static variable in class org.subethamail.smtp.internal.proxy.ProxyProtocolV1Handler
 
INSTANCE - Static variable in class org.subethamail.smtp.internal.proxy.ProxyProtocolV1V2Handler
Standard instance
INSTANCE - Static variable in class org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler
Default thread safe instance with maximum data length size 2048.
INSTANCE - Static variable in class org.subethamail.smtp.internal.server.AcceptAllSessionHandler
 
InvalidCommandNameException - Exception in org.subethamail.smtp.internal.server
 
InvalidCommandNameException() - Constructor for exception org.subethamail.smtp.internal.server.InvalidCommandNameException
 
InvalidCommandNameException(String) - Constructor for exception org.subethamail.smtp.internal.server.InvalidCommandNameException
 
InvalidCommandNameException(String, Throwable) - Constructor for exception org.subethamail.smtp.internal.server.InvalidCommandNameException
 
InvalidCommandNameException(Throwable) - Constructor for exception org.subethamail.smtp.internal.server.InvalidCommandNameException
 
isAuthenticated() - Method in class org.subethamail.smtp.server.Session
 
isConnected() - Method in class org.subethamail.smtp.client.SMTPClient
Returns true if the client is connected to the server.
isLast - Variable in class org.subethamail.smtp.internal.command.BdatCommand.Bdat
 
isMailTransactionInProgress() - Method in class org.subethamail.smtp.server.Session
Returns true if a mail transaction is started, i.e.
isNOP() - Method in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
 
isRunning() - Method in class org.subethamail.smtp.server.SMTPServer
Is the server running after start() has been called?
isSuccess() - Method in class org.subethamail.smtp.client.SMTPClient.Response
 
isSuccess() - Method in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
 
isTLSStarted() - Method in class org.subethamail.smtp.server.Session
 
isValidEmailAddress(String, boolean) - Static method in class org.subethamail.smtp.internal.util.EmailUtils
 

J

joinTogether(Collection<String>, String) - Static method in class org.subethamail.smtp.internal.util.TextUtils
 

L

last - Variable in class org.subethamail.smtp.internal.io.DotUnstuffingInputStream
An array to hold the last two bytes read off the stream.
limitConcurrentSessionsBySource(int) - Static method in interface org.subethamail.smtp.server.SessionHandler
 
login(String, String, MessageContext) - Method in interface org.subethamail.smtp.auth.UsernamePasswordValidator
 
LoginAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
Implements the SMTP AUTH LOGIN mechanism.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.
LoginAuthenticationHandlerFactory(UsernamePasswordValidator) - Constructor for class org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
 
LoginFailedException - Exception in org.subethamail.smtp.auth
Exception expected to be thrown by a validator (i.e UsernamePasswordValidator)
LoginFailedException() - Constructor for exception org.subethamail.smtp.auth.LoginFailedException
Creates a new instance of LoginFailedException
LoginFailedException(String) - Constructor for exception org.subethamail.smtp.auth.LoginFailedException
Creates a new instance of LoginFailedException

M

MailCommand - Class in org.subethamail.smtp.internal.command
 
MailCommand() - Constructor for class org.subethamail.smtp.internal.command.MailCommand
 
MailCommand(Predicate<String>) - Constructor for class org.subethamail.smtp.internal.command.MailCommand
 
main(String[]) - Static method in class org.subethamail.smtp.examples.BasicSMTPServer
 
main(String[]) - Static method in class org.subethamail.smtp.Version
A simple main method that prints the version and exits
main(String[]) - Static method in class org.subethamail.wiser.Wiser
A main() for this class.
mark(int) - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
markSupported() - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
MAX_PROXY_HEADER_LENGTH - Static variable in class org.subethamail.smtp.internal.proxy.ProxyProtocolV1Handler
Maximum PROXY header length
maxConnections(int) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
MaxLineLengthException() - Constructor for exception org.subethamail.smtp.internal.io.CRLFTerminatedReader.MaxLineLengthException
 
MaxLineLengthException(String) - Constructor for exception org.subethamail.smtp.internal.io.CRLFTerminatedReader.MaxLineLengthException
 
maxMessageSize(int) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the maximum messages size (does not enforce though!).
maxRecipients(int) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the maximum number of recipients per message delivery request.
messageArrived(MessageContext, String, String, byte[]) - Method in interface org.subethamail.smtp.helper.BasicMessageListener
Process a message that has just arrived.
MessageContext - Interface in org.subethamail.smtp
Interface which provides context to the message handlers.
MessageHandler - Interface in org.subethamail.smtp
The interface that defines the conversational exchange of a single message on an SMTP connection.
messageHandler(BasicMessageListener) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
MessageHandlerFactory - Interface in org.subethamail.smtp
The primary interface to be implemented by clients of the SMTP library.
messageHandlerFactory(MessageHandlerFactory) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
MultipleAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
This handler combines the behavior of several other authentication handler factories.
MultipleAuthenticationHandlerFactory() - Constructor for class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 
MultipleAuthenticationHandlerFactory(Collection<AuthenticationHandlerFactory>) - Constructor for class org.subethamail.smtp.auth.MultipleAuthenticationHandlerFactory
 

N

NoopCommand - Class in org.subethamail.smtp.internal.command
 
NoopCommand() - Constructor for class org.subethamail.smtp.internal.command.NoopCommand
 
NOP - Static variable in interface org.subethamail.smtp.internal.proxy.ProxyHandler
No proxy negotiation
NOP - Static variable in class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
No real proxy data

O

onSessionEnd(Session) - Method in class org.subethamail.smtp.internal.server.AcceptAllSessionHandler
 
onSessionEnd(Session) - Method in class org.subethamail.smtp.internal.server.ConcurrentSessionsBySourceLimiter
 
onSessionEnd(Session) - Method in interface org.subethamail.smtp.server.SessionHandler
This method is invoked on session close.
org.subethamail.smtp - package org.subethamail.smtp
 
org.subethamail.smtp.auth - package org.subethamail.smtp.auth
 
org.subethamail.smtp.client - package org.subethamail.smtp.client
 
org.subethamail.smtp.examples - package org.subethamail.smtp.examples
 
org.subethamail.smtp.helper - package org.subethamail.smtp.helper
 
org.subethamail.smtp.internal - package org.subethamail.smtp.internal
 
org.subethamail.smtp.internal.command - package org.subethamail.smtp.internal.command
 
org.subethamail.smtp.internal.io - package org.subethamail.smtp.internal.io
 
org.subethamail.smtp.internal.proxy - package org.subethamail.smtp.internal.proxy
 
org.subethamail.smtp.internal.server - package org.subethamail.smtp.internal.server
 
org.subethamail.smtp.internal.util - package org.subethamail.smtp.internal.util
 
org.subethamail.smtp.server - package org.subethamail.smtp.server
 
org.subethamail.wiser - package org.subethamail.wiser
 

P

parse(String) - Static method in class org.subethamail.smtp.internal.command.BdatCommand
 
PlainAuthenticationHandlerFactory - Class in org.subethamail.smtp.auth
Implements the SMTP AUTH PLAIN mechanism.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.
PlainAuthenticationHandlerFactory(UsernamePasswordValidator) - Constructor for class org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
 
PlainAuthenticator - Class in org.subethamail.smtp.client
PlainAuthenticator implements the SASL PLAIN mechanism which authenticates the client using a name - password combination.
PlainAuthenticator(SmartClient, String, String) - Constructor for class org.subethamail.smtp.client.PlainAuthenticator
 
port(int) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
port(int) - Static method in class org.subethamail.smtp.server.SMTPServer
 
port(int) - Static method in class org.subethamail.wiser.Wiser
 
port(int) - Method in class org.subethamail.wiser.Wiser.WiserBuilder
 
position() - Method in exception org.subethamail.smtp.internal.io.CRLFTerminatedReader.TerminationException
 
ProxyHandler - Interface in org.subethamail.smtp.internal.proxy
Handle proxied connections and their metadata sent before actual SMTP protocol.
proxyHandler(ProxyHandler) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the ProxyHandler which will handle proxy packets before SMTP protocol.
ProxyHandler.ProxyResult - Class in org.subethamail.smtp.internal.proxy
 
ProxyProtocolV1Handler - Class in org.subethamail.smtp.internal.proxy
ProxyProtocolV1Handler.Family - Enum in org.subethamail.smtp.internal.proxy
 
ProxyProtocolV1V2Handler - Class in org.subethamail.smtp.internal.proxy
ProxyProtocolV1V2Handler(ProxyProtocolV1Handler, ProxyProtocolV2Handler) - Constructor for class org.subethamail.smtp.internal.proxy.ProxyProtocolV1V2Handler
 
ProxyProtocolV2Handler - Class in org.subethamail.smtp.internal.proxy
ProxyProtocolV2Handler(int) - Constructor for class org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler
 
ProxyProtocolV2Handler.Command - Enum in org.subethamail.smtp.internal.proxy
 
ProxyProtocolV2Handler.Family - Enum in org.subethamail.smtp.internal.proxy
 
ProxyProtocolV2Handler.Transport - Enum in org.subethamail.smtp.internal.proxy
 
ProxyResult(InetSocketAddress) - Constructor for class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
 
ProxyResult(int, String) - Constructor for class org.subethamail.smtp.internal.proxy.ProxyHandler.ProxyResult
 

Q

quit() - Method in class org.subethamail.smtp.client.SmartClient
Quit and close down the connection.
quit() - Method in class org.subethamail.smtp.server.Session
Triggers the shutdown of the thread and the closing of the connection.
QuitCommand - Class in org.subethamail.smtp.internal.command
 
QuitCommand() - Constructor for class org.subethamail.smtp.internal.command.QuitCommand
 

R

read() - Method in class org.subethamail.smtp.internal.io.BdatInputStream
 
read() - Method in class org.subethamail.smtp.internal.io.CRLFTerminatedReader
 
read(char[], int, int) - Method in class org.subethamail.smtp.internal.io.CRLFTerminatedReader
 
read() - Method in class org.subethamail.smtp.internal.io.DotTerminatedInputStream
 
read() - Method in class org.subethamail.smtp.internal.io.DotUnstuffingInputStream
Read through the stream, checking for '\r\n.'
read(byte[], int, int) - Method in class org.subethamail.smtp.internal.io.DotUnstuffingInputStream
Read through the stream, checking for '\r\n.'
read() - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
read(byte[], int, int) - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
read(byte[]) - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
read(char[], int, int) - Method in class org.subethamail.smtp.internal.io.Utf8InputStreamReader
 
read() - Method in class org.subethamail.smtp.internal.io.Utf8InputStreamReader
 
readLine() - Method in class org.subethamail.smtp.internal.io.CRLFTerminatedReader
Read a line of text which is terminated by CRLF.
ready() - Method in class org.subethamail.smtp.internal.io.CRLFTerminatedReader
 
ReceiptCommand - Class in org.subethamail.smtp.internal.command
 
ReceiptCommand() - Constructor for class org.subethamail.smtp.internal.command.ReceiptCommand
 
receive() - Method in class org.subethamail.smtp.client.SmartClient
Returns the server response.
receive() - Method in class org.subethamail.smtp.client.SMTPClient
Note that the response text comes back without trailing newlines.
RECEIVE_AND_CHECK_PAUSE_MS - Static variable in class org.subethamail.smtp.client.SMTPClient
This field is temporary only till SmartClient builder is created.
receiveAndCheck() - Method in class org.subethamail.smtp.client.SMTPClient
If response is not success, throw an exception
ReceivedHeaderStream - Class in org.subethamail.smtp.internal.io
Prepends a Received: header at the beginning of the input stream.
ReceivedHeaderStream(InputStream, Optional<String>, InetAddress, String, Optional<String>, String, Optional<String>) - Constructor for class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
recipient(String) - Method in class org.subethamail.smtp.helper.BasicMessageHandlerFactory.BasicMessageHandler
 
recipient(String) - Method in interface org.subethamail.smtp.MessageHandler
Called once for every RCPT TO during a SMTP exchange.
RejectException - Exception in org.subethamail.smtp
Thrown to reject an SMTP command with a specific code.
RejectException() - Constructor for exception org.subethamail.smtp.RejectException
 
RejectException(String) - Constructor for exception org.subethamail.smtp.RejectException
 
RejectException(int, String) - Constructor for exception org.subethamail.smtp.RejectException
 
requireAuth(boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets whether authentication is required.
requireAuth() - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
RequireAuthCommandWrapper - Class in org.subethamail.smtp.internal.server
Thin wrapper around any command to make sure authentication has been performed.
RequireAuthCommandWrapper(Command) - Constructor for class org.subethamail.smtp.internal.server.RequireAuthCommandWrapper
 
requireTLS(boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
requireTLS() - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
RequireTLSCommandWrapper - Class in org.subethamail.smtp.internal.server
Verifies the presence of a TLS connection if TLS is required.
RequireTLSCommandWrapper(Command) - Constructor for class org.subethamail.smtp.internal.server.RequireTLSCommandWrapper
 
reset() - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
ResetCommand - Class in org.subethamail.smtp.internal.command
 
ResetCommand() - Constructor for class org.subethamail.smtp.internal.command.ResetCommand
 
resetMailTransaction() - Method in class org.subethamail.smtp.server.Session
Stops the mail transaction if it in progress and resets all state related to mail transactions.
resetSmtpProtocol() - Method in class org.subethamail.smtp.server.Session
Reset the SMTP protocol to the initial state, which is the state after a server issues a 220 service ready greeting.
Response(int, String) - Constructor for class org.subethamail.smtp.client.SMTPClient.Response
 
run() - Method in class org.subethamail.smtp.internal.server.ServerThread
This method is called by this thread when it starts up.
run() - Method in class org.subethamail.smtp.server.Session
The thread for each session runs on this and shuts down when the quitting member goes true.

S

send(String) - Method in class org.subethamail.smtp.client.SMTPClient
Sends a message to the server, ie "HELO foo.example.com".
sendAndCheck(String) - Method in class org.subethamail.smtp.client.SmartClient
 
sendAndCheck(String) - Method in class org.subethamail.smtp.client.SMTPClient
If response is not success, throw an exception
sendHeloOrEhlo() - Method in class org.subethamail.smtp.client.SmartClient
Sends the EHLO command, or HELO if EHLO is not supported, and saves the list of SMTP extensions which are supported by the server.
sendReceive(String) - Method in class org.subethamail.smtp.client.SMTPClient
Sends a message to the server, ie "HELO foo.example.com".
sendResponse(String) - Method in class org.subethamail.smtp.server.Session
Sends the response to the client
server(SMTPServer.Builder) - Method in class org.subethamail.wiser.Wiser.WiserBuilder
 
ServerSocketCreator - Interface in org.subethamail.smtp.server
 
serverSocketFactory(ServerSocketCreator) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
serverSocketFactory(SSLServerSocketFactory) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
serverSocketFactory(SSLContext) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
ServerThread - Class in org.subethamail.smtp.internal.server
ServerThread accepts TCP connections to the server socket and starts a new Session thread for each connection which will handle the connection.
ServerThread(SMTPServer, ServerSocket, ProxyHandler) - Constructor for class org.subethamail.smtp.internal.server.ServerThread
 
serverThreadName(String) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the server thead name.
serverThreadNameProvider(Function<SMTPServer, String>) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
Session - Class in org.subethamail.smtp.server
The thread that handles a connection.
Session(SMTPServer, ServerThread, Socket, ProxyHandler) - Constructor for class org.subethamail.smtp.server.Session
Creates the Runnable Session object.
sessionEnded(Session) - Method in class org.subethamail.smtp.internal.server.ServerThread
Registers that the specified Session thread ended.
SessionHandler - Interface in org.subethamail.smtp.server
Handler of session lifecycle events.
sessionHandler(SessionHandler) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the SessionHandler which will track allocated session and connections.
SessionHandler.SessionAcceptance - Class in org.subethamail.smtp.server
SessionIdFactory - Interface in org.subethamail.smtp.server
SessionIdFactory creates reasonable unique identifiers which are applicable to identify a session in the log files.
sessionIdFactory(SessionIdFactory) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets the SessionIdFactory which will allocate a unique identifier for each mail sessions.
setAuthenticationHandler(AuthenticationHandler) - Method in class org.subethamail.smtp.server.Session
This is called by the AuthCommand when a session is successfully authenticated.
setDeclaredMessageSize(int) - Method in class org.subethamail.smtp.server.Session
 
setHelo(String) - Method in class org.subethamail.smtp.server.Session
 
setSocket(Socket) - Method in class org.subethamail.smtp.server.Session
Initializes our reader, writer, and the i/o filter chains based on the specified socket.
setTlsPeerCertificates(Certificate[]) - Method in class org.subethamail.smtp.server.Session
 
setTlsStarted(boolean) - Method in class org.subethamail.smtp.server.Session
 
showAuthCapabilitiesBeforeSTARTTLS(boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
Sets whether AUTH capabilities are shown before STARTTLS is received.
shutdown() - Method in class org.subethamail.smtp.internal.server.ServerThread
Closes the server socket and all client sockets.
SimpleMessageListener - Interface in org.subethamail.smtp.helper
This is an interface for processing the end-result messages that is higher-level than the MessageHandler and related factory.
simpleMessageListener(SimpleMessageListener) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
SimpleMessageListenerAdapter - Class in org.subethamail.smtp.helper
MessageHandlerFactory implementation which adapts to a collection of MessageListeners.
SimpleMessageListenerAdapter(SimpleMessageListener) - Constructor for class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
Initializes this factory with a single listener.
SimpleMessageListenerAdapter(Collection<SimpleMessageListener>) - Constructor for class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
Initializes this factory with the listeners.
SimpleMessageListenerAdapter(Collection<SimpleMessageListener>, int) - Constructor for class org.subethamail.smtp.helper.SimpleMessageListenerAdapter
Initializes this factory with the listeners.
size - Variable in class org.subethamail.smtp.internal.command.BdatCommand.Bdat
 
skip(long) - Method in class org.subethamail.smtp.internal.io.ReceivedHeaderStream
 
SmartClient - Class in org.subethamail.smtp.client
A somewhat smarter abstraction of an SMTP client which doesn't require knowing anything about the nitty gritty of SMTP.
SmartClient(SMTPClient, String, Optional<Authenticator>) - Constructor for class org.subethamail.smtp.client.SmartClient
Constructor.
SmarterMessageListener - Interface in org.subethamail.smtp.helper
This is an interface for processing the end-result messages that is higher-level than the MessageHandler and related factory but lower-level than SimpleMessageListener.
SmarterMessageListener.Receiver - Interface in org.subethamail.smtp.helper
Interface which accepts delivery of a message.
SmarterMessageListenerAdapter - Class in org.subethamail.smtp.helper
MessageHandlerFactory implementation which adapts to a collection of SmarterMessageListeners.
SmarterMessageListenerAdapter(SmarterMessageListener) - Constructor for class org.subethamail.smtp.helper.SmarterMessageListenerAdapter
Initializes this factory with a single listener.
SmarterMessageListenerAdapter(Collection<SmarterMessageListener>) - Constructor for class org.subethamail.smtp.helper.SmarterMessageListenerAdapter
Initializes this factory with the listeners.
SmarterMessageListenerAdapter(Collection<SmarterMessageListener>, int) - Constructor for class org.subethamail.smtp.helper.SmarterMessageListenerAdapter
Initializes this factory with the listeners.
SMTP_CHARSET - Static variable in class org.subethamail.smtp.internal.Constants
 
SMTP_MAX_LINE_LEN - Static variable in class org.subethamail.smtp.internal.Constants
Maximum total length of a command line as SMTPClient - Class in org.subethamail.smtp.client
A very low level abstraction of the STMP stream which knows how to handle the raw protocol for lines, whitespace, etc.
SMTPClient() - Constructor for class org.subethamail.smtp.client.SMTPClient
Establishes a connection to host and port.
SMTPClient(Optional<SocketAddress>, Optional<String>) - Constructor for class org.subethamail.smtp.client.SMTPClient
Constructor.
SMTPClient.Response - Class in org.subethamail.smtp.client
Result of an SMTP exchange.
SMTPException - Exception in org.subethamail.smtp.client
Thrown if a syntactically valid reply was received from the server, which indicates an error via the status code.
SMTPException(SMTPClient.Response) - Constructor for exception org.subethamail.smtp.client.SMTPException
 
SMTPResponseHelper - Class in org.subethamail.smtp.internal.util
 
SMTPServer - Class in org.subethamail.smtp.server
Main SMTPServer class.
SMTPServer.Builder - Class in org.subethamail.smtp.server
 
softwareName(String) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
SSLSocketCreator - Interface in org.subethamail.smtp.server
 
start(int) - Method in class org.subethamail.smtp.examples.BasicSMTPServer
 
start() - Method in class org.subethamail.smtp.server.SMTPServer
Starts the server listening for connections.
start() - Method in class org.subethamail.wiser.Wiser
Starts the SMTP Server
startMailTransaction() - Method in class org.subethamail.smtp.server.Session
Starts a mail transaction by creating a new message handler.
StartTLSCommand - Class in org.subethamail.smtp.internal.command
 
StartTLSCommand() - Constructor for class org.subethamail.smtp.internal.command.StartTLSCommand
 
startTlsSocketFactory(SSLSocketCreator) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
startTlsSocketFactory(SSLContext) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
startTlsSocketFactory(SSLContext, boolean) - Method in class org.subethamail.smtp.server.SMTPServer.Builder
 
stop() - Method in class org.subethamail.smtp.server.SMTPServer
Shut things down gracefully.
stop() - Method in class org.subethamail.wiser.Wiser
Stops the SMTP Server
success() - Static method in class org.subethamail.smtp.server.SessionHandler.SessionAcceptance
Returns a success SessionHandler.accept(Session) result.

T

TerminationException(int) - Constructor for exception org.subethamail.smtp.internal.io.CRLFTerminatedReader.TerminationException
 
TerminationException(String, int) - Constructor for exception org.subethamail.smtp.internal.io.CRLFTerminatedReader.TerminationException
 
TextUtils - Class in org.subethamail.smtp.internal.util
 
thresholdReached(int, int) - Method in class org.subethamail.smtp.internal.io.DeferredFileOutputStream
 
TimeBasedSessionIdFactory - Class in org.subethamail.smtp.server
TimeBasedSessionIdFactory is a very simple SessionIdFactory, which assigns numeric identifiers based on the current milliseconds time, amending it as necessary to make it unique.
TimeBasedSessionIdFactory() - Constructor for class org.subethamail.smtp.server.TimeBasedSessionIdFactory
 
TMPFILE_PREFIX - Static variable in class org.subethamail.smtp.internal.io.DeferredFileOutputStream
 
TMPFILE_SUFFIX - Static variable in class org.subethamail.smtp.internal.io.DeferredFileOutputStream
 
to(String) - Method in class org.subethamail.smtp.client.SmartClient
 
toHex(byte[]) - Static method in class org.subethamail.smtp.internal.util.HexUtils
Convert a byte array into his hex representation.
toHex(byte[], char) - Static method in class org.subethamail.smtp.internal.util.HexUtils
Convert a byte array into his hex representation.
toHex(byte[], int, int) - Static method in class org.subethamail.smtp.internal.util.HexUtils
Convert a byte array into his hex representation.
toHex(byte[], int, int, Character) - Static method in class org.subethamail.smtp.internal.util.HexUtils
Convert a byte array into his hex representation.
TooMuchDataException - Exception in org.subethamail.smtp
Thrown by message listeners if an input stream provides more data than the listener can handle.
TooMuchDataException() - Constructor for exception org.subethamail.smtp.TooMuchDataException
 
TooMuchDataException(String) - Constructor for exception org.subethamail.smtp.TooMuchDataException
 
toOutputString() - Method in class org.subethamail.smtp.internal.server.HelpMessage
 
toString() - Method in class org.subethamail.smtp.client.SMTPClient.Response
 
toString() - Method in class org.subethamail.smtp.client.SMTPClient
 
toString() - Method in class org.subethamail.wiser.WiserMessage
Implementation of toString()

U

UnknownCommandException - Exception in org.subethamail.smtp.internal.server
 
UnknownCommandException() - Constructor for exception org.subethamail.smtp.internal.server.UnknownCommandException
 
UnknownCommandException(String) - Constructor for exception org.subethamail.smtp.internal.server.UnknownCommandException
 
UnknownCommandException(String, Throwable) - Constructor for exception org.subethamail.smtp.internal.server.UnknownCommandException
 
UnknownCommandException(Throwable) - Constructor for exception org.subethamail.smtp.internal.server.UnknownCommandException
 
UsernamePasswordValidator - Interface in org.subethamail.smtp.auth
Use this when your authentication scheme uses a username and a password.
Utf8InputStreamReader - Class in org.subethamail.smtp.internal.io
No-buffering, no-locking (not thread-safe) InputStream Reader for UTF-8 encoded strings.
Utf8InputStreamReader(InputStream) - Constructor for class org.subethamail.smtp.internal.io.Utf8InputStreamReader
 

V

value - Variable in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Command
 
value - Variable in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Family
 
value - Variable in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Transport
 
valueOf(String) - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV1Handler.Family
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Command
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Family
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Transport
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.subethamail.smtp.internal.server.CommandRegistry
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV1Handler.Family
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Command
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Family
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.subethamail.smtp.internal.proxy.ProxyProtocolV2Handler.Transport
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.subethamail.smtp.internal.server.CommandRegistry
Returns an array containing the constants of this enum type, in the order they are declared.
VERB - Static variable in class org.subethamail.smtp.internal.command.AuthCommand
 
VerifyCommand - Class in org.subethamail.smtp.internal.command
 
VerifyCommand() - Constructor for class org.subethamail.smtp.internal.command.VerifyCommand
 
Version - Class in org.subethamail.smtp
Provides version information from the manifest.

W

Wiser - Class in org.subethamail.wiser
Wiser is a tool for unit testing applications that send mail.
Wiser.Accepter - Interface in org.subethamail.wiser
 
Wiser.WiserBuilder - Class in org.subethamail.wiser
 
WiserMessage - Class in org.subethamail.wiser
This class wraps a received message and provides a way to generate a JavaMail MimeMessage from the data.
write(int) - Method in class org.subethamail.smtp.internal.io.DotTerminatedOutputStream
 
write(byte[], int, int) - Method in class org.subethamail.smtp.internal.io.DotTerminatedOutputStream
 
write(int) - Method in class org.subethamail.smtp.internal.io.ExtraDotOutputStream
Writes a byte to the stream, adding dots where appropriate.
writeChunk(byte[], int, int) - Method in class org.subethamail.smtp.internal.io.ExtraDotOutputStream
Overrides super writeChunk in order to add a "." if the previous chunk ended with a new line and a new chunk starts with "."
writeTerminatingSequence() - Method in class org.subethamail.smtp.internal.io.DotTerminatedOutputStream
Writes ".
A B C D E F G H I J L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2006–2024. All rights reserved.