Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addListener(SmtpServerListener) - Method in class ch.astorm.smtp4j.SmtpServer
-
Registers the specified
listenerto the server's events. - addUser(String, String) - Method in class ch.astorm.smtp4j.store.SimpleUserRepository
-
Adds the given
userwith itspassword. - addUser(String, String) - Method in interface ch.astorm.smtp4j.store.UserRepository
-
Adds the given
usernameto the repository. - at(String) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the sent date.
- at(Date) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the sent date.
- attachment(File) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the specified
fileas attachment. - attachment(String, File) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the specified
fileas attachment wit the givenname. - attachment(String, String, InputStream) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the specified
fileas attachment wit the givennameandmimeType. - AUTH - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- authenticate(SmtpCommand, SmtpExchangeHandler, SmtpServerOptions) - Method in class ch.astorm.smtp4j.auth.CramMD5AuthenticationHandler
- authenticate(SmtpCommand, SmtpExchangeHandler, SmtpServerOptions) - Method in class ch.astorm.smtp4j.auth.LoginAuthenticationHandler
- authenticate(SmtpCommand, SmtpExchangeHandler, SmtpServerOptions) - Method in class ch.astorm.smtp4j.auth.PlainAuthenticationHandler
- authenticate(SmtpCommand, SmtpExchangeHandler, SmtpServerOptions) - Method in interface ch.astorm.smtp4j.auth.SmtpAuthenticatorHandler
-
Authenticates the client.
- authenticators - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
List of
SmtpAuthenticatorHandler.
B
- bcc(Address) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto theBCCrecipients. - bcc(String...) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto theBCCrecipients. - body(String) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the message body.
- body(String, Charset) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the message body.
- build() - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Builds the
SmtpServer. - build() - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Builds the
MimeMessage.
C
- cc(Address) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto theCCrecipients. - cc(String...) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto theCCrecipients. - ch.astorm.smtp4j - package ch.astorm.smtp4j
- ch.astorm.smtp4j.auth - package ch.astorm.smtp4j.auth
- ch.astorm.smtp4j.core - package ch.astorm.smtp4j.core
- ch.astorm.smtp4j.protocol - package ch.astorm.smtp4j.protocol
- ch.astorm.smtp4j.secure - package ch.astorm.smtp4j.secure
- ch.astorm.smtp4j.store - package ch.astorm.smtp4j.store
- ch.astorm.smtp4j.util - package ch.astorm.smtp4j.util
- checkChallenge(String, String, Function<byte[], String>) - Method in interface ch.astorm.smtp4j.store.UserAuthenticator
-
Checks if the given
responseChallengematches the expected value returned by thehashFuncaccording to theusername's password. - checkCredentials(PasswordAuthentication) - Method in interface ch.astorm.smtp4j.store.UserAuthenticator
-
Checks the given
credentialsand throws aSecurityExceptionif those are invalid. - close() - Method in class ch.astorm.smtp4j.protocol.SmtpTransactionHandler
- close() - Method in class ch.astorm.smtp4j.SmtpServer
-
Closes this
SmtpServerinstance and releases all the resources associated to it. - CODE_AUTHENTICATION_FAILURE - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when authentication failed.
- CODE_AUTHENTICATION_REQUIRED - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when authentication is required.
- CODE_AUTHENTICATION_SUCCESS - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code replied when authentication has been successful.
- CODE_BAD_AUTHENTICATION_SCHEME - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when an invalid authentication scheme is used.
- CODE_BAD_COMMAND_SEQUENCE - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when a bad sequence of command has been received.
- CODE_COMMAND_TLS_UNAVAILABLE - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when TLS is unavailable.
- CODE_COMMAND_UNKNOWN - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when a command is unknown.
- CODE_CONNECT - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code of the first reply of the SMTP server.
- CODE_ENCRYPTION_NEEDED - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when secure communication must be used.
- CODE_INTERMEDIATE_REPLY - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when the command is accepted, but in intermediate state (data).
- CODE_NOT_SUPPORTED - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when the command is not supported.
- CODE_OK - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when the command is accepted by the server.
- CODE_QUIT - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code replied when the
QUITcommand is received. - CODE_SERVER_CHALLENGE - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Code when an intermediate challenge is asked by the server during authentication.
- CODE_STORAGE_EXCEEDED - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when storage allocation exceeded.
- CODE_TRANSACTION_FAILED - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Error code when a transaction has failed.
- COLON - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Colon separator.
- connectionString - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
String reply when a client connects to smtp4j.
- CramMD5AuthenticationHandler - Class in ch.astorm.smtp4j.auth
-
Handles the
CRAM-MD5authentication scheme. - create(String, List<String>, byte[], List<SmtpExchange>) - Static method in class ch.astorm.smtp4j.core.SmtpMessage
-
Creates a new
SmtpMessagewith the specified parameters. - create(KeyStore, char[]) - Static method in class ch.astorm.smtp4j.secure.DefaultSSLContextProvider
-
Creates a new
SSLContextProviderwith the givenkeyStoreandpassword. - createAuthenticatedSession(String, String) - Method in class ch.astorm.smtp4j.SmtpServer
-
Creates a new
Sessioninstance that will send messages to this server which provides a user for the authentication. - createSession() - Method in class ch.astorm.smtp4j.SmtpServer
-
Creates a new
Sessioninstance that will send messages to this server. - CRLF - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Line/command break.
D
- DATA - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- debugStream - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
Output for internal debugging.
- DEFAULT_PORT - Static variable in class ch.astorm.smtp4j.SmtpServer
-
Default SMTP port.
- DefaultSmtpMessageHandler - Class in ch.astorm.smtp4j.core
-
Simple
SmtpMessageHandlerthat stores the received messages in a list. - DefaultSmtpMessageHandler() - Constructor for class ch.astorm.smtp4j.core.DefaultSmtpMessageHandler
- DefaultSSLContextProvider - Class in ch.astorm.smtp4j.secure
-
Simple implementation of a
SSLContextProvider. - DefaultSSLContextProvider(KeyManagerFactory) - Constructor for class ch.astorm.smtp4j.secure.DefaultSSLContextProvider
- DOT - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Data dot-line separator.
E
- EHLO - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- ehloResponseFunction - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
Function that generates the reply to the
SmtpCommand.Type.EHLOcommand. - EXPAND - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
F
- from(Address) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the From address.
- from(String) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the From address.
G
- getAttachments() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the attachments of the MIME message.
- getAuthenticator() - Method in class ch.astorm.smtp4j.store.SimpleUserRepository
- getAuthenticator() - Method in interface ch.astorm.smtp4j.store.UserRepository
-
Returns an
UserAuthenticatorfor this repository. - getBody() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the content of the MIME message.
- getContentType() - Method in class ch.astorm.smtp4j.core.SmtpAttachment
-
Returns the Content Type.
- getFilename() - Method in class ch.astorm.smtp4j.core.SmtpAttachment
-
Returns the file name.
- getFrom() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
Fromheader of the MIME message. - getListeners() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the listeners of this server.
- getMessageHandler() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the current
SmtpMessageHandler. - getMimeMessage() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
MimeMessageparsed from the content. - getName() - Method in class ch.astorm.smtp4j.auth.CramMD5AuthenticationHandler
- getName() - Method in class ch.astorm.smtp4j.auth.LoginAuthenticationHandler
- getName() - Method in class ch.astorm.smtp4j.auth.PlainAuthenticationHandler
- getName() - Method in interface ch.astorm.smtp4j.auth.SmtpAuthenticatorHandler
-
Returns the name in the SMTP protocol.
- getOptions() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the SMTP server options.
- getParameter() - Method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Returns the command's parameter.
- getPort() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the port on which the
SmtpServerlisten to. - getRawMimeContent() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the internal raw content received by the SMTP server to parse as
MimeMessage. - getReceivedData() - Method in class ch.astorm.smtp4j.protocol.SmtpExchange
-
Returns the data received by smtp4j.
- getRecipients(Message.RecipientType) - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns all the recipients of the given
type. - getRepliedData() - Method in class ch.astorm.smtp4j.protocol.SmtpExchange
-
Returns the response sent back by smtp4j:
- getSentDate() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the sent date.
- getSessionProperties() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns the basic
Propertiesthat can be used forSession. - getSmtpExchanges() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the raw SMTP exchanges to create this message.
- getSourceFrom() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
Fromparameter specified during the protocol exchange. - getSourceRecipients() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the list of
Toparameters specified during the protocol exchange. - getSSLContext() - Method in class ch.astorm.smtp4j.secure.DefaultSSLContextProvider
- getSSLContext() - Method in interface ch.astorm.smtp4j.secure.SSLContextProvider
-
Returns an
SSLContext. - getSubject() - Method in class ch.astorm.smtp4j.core.SmtpMessage
-
Returns the
Subjectheader of the MIME message. - getType() - Method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Returns the command's type.
H
- handle(SmtpServer, Socket, SmtpTransactionHandler.MessageReceiver) - Static method in class ch.astorm.smtp4j.protocol.SmtpTransactionHandler
-
Handles the SMTP protocol communication.
- HELP - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
I
- INSTANCE - Static variable in class ch.astorm.smtp4j.auth.CramMD5AuthenticationHandler
-
Singleton instance of this handler.
- INSTANCE - Static variable in class ch.astorm.smtp4j.auth.LoginAuthenticationHandler
-
Singleton instance of this handler.
- INSTANCE - Static variable in class ch.astorm.smtp4j.auth.PlainAuthenticationHandler
-
Singleton instance of this handler.
- isClosed() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns true if the server has been closed or is not started yet.
- isRunning() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns true if the
SmtpServeris started and is actually listening for new messages.
L
- LoginAuthenticationHandler - Class in ch.astorm.smtp4j.auth
-
Handles the
LOGINauthentication scheme.
M
- MAIL_FROM - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- matches(String) - Method in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- maxMessageSize - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
The maximum message size (in bytes).
- messageReader() - Method in class ch.astorm.smtp4j.core.DefaultSmtpMessageHandler
- messageReader() - Method in interface ch.astorm.smtp4j.core.SmtpMessageHandler
-
Returns a new
SmtpMessageReaderthat loops over the received messages. - MimeMessageBuilder - Class in ch.astorm.smtp4j.util
-
Provides methods to easily create a
MimeMessagethat can be sent to an SMTP server. - MimeMessageBuilder(SmtpServer) - Constructor for class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Creates a new
MimeMessageBuilderby creating a newSessionfrom the givenserver. - MimeMessageBuilder(Session) - Constructor for class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Creates a new
MimeMessageBuilderwith the givensession.
N
- nextLine() - Method in interface ch.astorm.smtp4j.auth.SmtpExchangeHandler
-
Reads the next line from the client.
- NOOP - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- notifyClose(SmtpServer) - Method in class ch.astorm.smtp4j.core.DefaultSmtpMessageHandler
- notifyClose(SmtpServer) - Method in interface ch.astorm.smtp4j.core.SmtpServerListener
-
Invoked when the
serverhas been closed. - notifyMessage(SmtpServer, SmtpMessage) - Method in class ch.astorm.smtp4j.core.DefaultSmtpMessageHandler
- notifyMessage(SmtpServer, SmtpMessage) - Method in interface ch.astorm.smtp4j.core.SmtpServerListener
-
Invoked when the
serverhas received a message. - notifyStart(SmtpServer) - Method in class ch.astorm.smtp4j.core.DefaultSmtpMessageHandler
- notifyStart(SmtpServer) - Method in interface ch.astorm.smtp4j.core.SmtpServerListener
-
Invoked when the
serverhas been started and is ready to receive messages.
O
- openStream() - Method in class ch.astorm.smtp4j.core.SmtpAttachment
-
Opens a new
InputStreamon this attachment. - openStream() - Method in interface ch.astorm.smtp4j.core.SmtpAttachment.StreamProvider
-
Returns a new
InputStream.
P
- parse(String) - Static method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Parses the
lineand creates a newSmtpCommand. - PlainAuthenticationHandler - Class in ch.astorm.smtp4j.auth
-
Handles
PLAINauthentication scheme. - protocol - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
The protocol to use.
Q
- QUIT - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
R
- readMessage() - Method in interface ch.astorm.smtp4j.core.SmtpMessageHandler.SmtpMessageReader
-
Reads the next available
SmtpMessage. - readMessages(long, TimeUnit) - Method in class ch.astorm.smtp4j.core.DefaultSmtpMessageHandler
- readMessages(long, TimeUnit) - Method in interface ch.astorm.smtp4j.core.SmtpMessageHandler
-
Retrieves the received messages and clears the list.
- readReceivedMessages() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns all the (newly) received messages.
- readReceivedMessages(long, TimeUnit) - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns all the (newly) received messages.
- receivedMessageReader() - Method in class ch.astorm.smtp4j.SmtpServer
-
Returns a new
SmtpMessageHandler.SmtpMessageReaderto read incoming messages. - receiveMessage(SmtpMessage) - Method in interface ch.astorm.smtp4j.protocol.SmtpTransactionHandler.MessageReceiver
-
Invoked when a message is received.
- RECIPIENT - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- removeListener(SmtpServerListener) - Method in class ch.astorm.smtp4j.SmtpServer
-
Removes the specified
listenerof the server's event notifications. - removeUser(String) - Method in class ch.astorm.smtp4j.store.SimpleUserRepository
-
Removes the given
user. - removeUser(String) - Method in interface ch.astorm.smtp4j.store.UserRepository
-
Removes the given
usernamefrom the repository. - reply(int) - Method in interface ch.astorm.smtp4j.auth.SmtpExchangeHandler
-
Replies the specified
codeto the client. - reply(int, String) - Method in interface ch.astorm.smtp4j.auth.SmtpExchangeHandler
-
Replies the specified
codeandmessageto the client. - requireTLS - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
True if the TLS secure layer must be asked once connected.
- RESET - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
S
- selfSigned() - Static method in class ch.astorm.smtp4j.secure.DefaultSSLContextProvider
-
Creates a new
SSLContextProviderthat uses and internal generated keystore. - send() - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Builds and send the message.
- setOptions(SmtpServerOptions) - Method in class ch.astorm.smtp4j.SmtpServer
-
Sets the SMTP options.
- SimpleUserRepository - Class in ch.astorm.smtp4j.store
-
A basic user repository.
- SimpleUserRepository() - Constructor for class ch.astorm.smtp4j.store.SimpleUserRepository
- SMTP - Enum constant in enum class ch.astorm.smtp4j.SmtpServerOptions.Protocol
-
Simple mail transfer protocol.
- SmtpAttachment - Class in ch.astorm.smtp4j.core
-
Attachment of an
SmtpMessage. - SmtpAttachment(String, String, SmtpAttachment.StreamProvider) - Constructor for class ch.astorm.smtp4j.core.SmtpAttachment
-
Creates a new
SmtpAttachementwith the specified parameters. - SmtpAttachment.StreamProvider - Interface in ch.astorm.smtp4j.core
-
Provides an
InputStreamto read the attachment content. - SmtpAuthenticatorHandler - Interface in ch.astorm.smtp4j.auth
-
Represents an authenticator handler.
- SmtpCommand - Class in ch.astorm.smtp4j.protocol
-
List of SMTP commands.
- SmtpCommand(SmtpCommand.Type, String) - Constructor for class ch.astorm.smtp4j.protocol.SmtpCommand
-
Creates a new
SmtpCommand. - SmtpCommand.Type - Enum Class in ch.astorm.smtp4j.protocol
-
Represents the SMTP command types.
- SmtpExchange - Class in ch.astorm.smtp4j.protocol
-
Protocol exchange data between smtp4j and the sender.
- SmtpExchange(List<String>, String) - Constructor for class ch.astorm.smtp4j.protocol.SmtpExchange
- SmtpExchangeHandler - Interface in ch.astorm.smtp4j.auth
-
Some
SmtpAuthenticatorHandlerrequires multiple exchanges between the server and the client. - SmtpMessage - Class in ch.astorm.smtp4j.core
-
Represents an SMTP message.
- SmtpMessage(String, List<String>, MimeMessage, String, List<SmtpExchange>) - Constructor for class ch.astorm.smtp4j.core.SmtpMessage
-
Creates a new
SmtpMessagewith the specified parameters. - SmtpMessageHandler - Interface in ch.astorm.smtp4j.core
-
Represents a message handler that will process any incoming message.
- SmtpMessageHandler.SmtpMessageReader - Interface in ch.astorm.smtp4j.core
-
Represents a simple
SmtpMessageiterator. - SmtpProtocolConstants - Class in ch.astorm.smtp4j.protocol
-
Constants for the SMTP protocol.
- SmtpProtocolConstants() - Constructor for class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
- SmtpProtocolException - Exception Class in ch.astorm.smtp4j.protocol
-
Exception thrown when there is an error during the protocol exchange.
- SmtpProtocolException(String) - Constructor for exception class ch.astorm.smtp4j.protocol.SmtpProtocolException
- SmtpProtocolException(String, Throwable) - Constructor for exception class ch.astorm.smtp4j.protocol.SmtpProtocolException
- SMTPS - Enum constant in enum class ch.astorm.smtp4j.SmtpServerOptions.Protocol
-
Simple mail transfer protocol over TLS.
- SmtpServer - Class in ch.astorm.smtp4j
-
Simple SMTP server.
- SmtpServer(int) - Constructor for class ch.astorm.smtp4j.SmtpServer
-
Creates a new
SmtpServerwith aDefaultSmtpMessageHandlerinstance to handle received messages. - SmtpServer(int, SmtpMessageHandler, ExecutorService) - Constructor for class ch.astorm.smtp4j.SmtpServer
-
Creates a new
SmtpServer. - SmtpServerBuilder - Class in ch.astorm.smtp4j
-
Helper to build a new
SmtpServer. - SmtpServerBuilder() - Constructor for class ch.astorm.smtp4j.SmtpServerBuilder
- SmtpServerListener - Interface in ch.astorm.smtp4j.core
-
Represents a server listener.
- SmtpServerOptions - Class in ch.astorm.smtp4j
-
Represents options of the
SmtpServer. - SmtpServerOptions() - Constructor for class ch.astorm.smtp4j.SmtpServerOptions
- SmtpServerOptions.Protocol - Enum Class in ch.astorm.smtp4j
-
Represents the protocol.
- SmtpTransactionHandler - Class in ch.astorm.smtp4j.protocol
-
Handles the SMTP protocol.
- SmtpTransactionHandler.MessageReceiver - Interface in ch.astorm.smtp4j.protocol
-
Represents a message receiver within the SMTP transaction.
- SP_CONTINUE - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Command-parameter separator (multiline reply).
- SP_FINAL - Static variable in class ch.astorm.smtp4j.protocol.SmtpProtocolConstants
-
Command-parameter separator.
- sslContextProvider - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
The
SSLContextProviderthat will provide theSSLContextto upgrade to TLS communication. - SSLContextProvider - Interface in ch.astorm.smtp4j.secure
-
SSLContextprovider. - start() - Method in class ch.astorm.smtp4j.SmtpServer
-
Starts the server.
- start() - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Builds the
SmtpServerand starts it. - startTLS - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
True if the
SmtpCommand.Type.STARTTLScommand must be accepted. - STARTTLS - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- subject(String) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the message subject.
- subject(String, Charset) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Defines the message subject.
T
- to(Address) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto theTOrecipients. - to(String...) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto theTOrecipients. - toRecipient(Message.RecipientType, Address) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto the specified recipienttype. - toRecipient(Message.RecipientType, String...) - Method in class ch.astorm.smtp4j.util.MimeMessageBuilder
-
Adds the
addressto the specified recipienttype. - toString() - Method in class ch.astorm.smtp4j.protocol.SmtpCommand
-
Returns this SMTP command in a printable format.
U
- UNKNOWN - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
- UserAuthenticator - Interface in ch.astorm.smtp4j.store
-
Handles the authentication of users.
- UserRepository - Interface in ch.astorm.smtp4j.store
-
Represents a user's repository.
- usersRepository - Variable in class ch.astorm.smtp4j.SmtpServerOptions
-
The users repository used for the authentication.
V
- valueOf(String) - Static method in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class ch.astorm.smtp4j.SmtpServerOptions.Protocol
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class ch.astorm.smtp4j.SmtpServerOptions.Protocol
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERIFY - Enum constant in enum class ch.astorm.smtp4j.protocol.SmtpCommand.Type
W
- withAuthenticator(SmtpAuthenticatorHandler) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Adds the given
handlerto authenticate a client. - withConnectionString(String) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines a custom connection string when a new client connects.
- withDebugStream(PrintStream) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the
PrintStreamto use for debugging.If null, then no debug output will be printed. - withEHLOResponseFunction(Function<String, String>) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines a custom function to generate the
SmtpCommand.Type.EHLOresponse. - withExecutorService(ExecutorService) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the
ExecutorServiceto use to handle the SMTP messages. - withListener(SmtpServerListener) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Adds the specified
listeneronce de server is build. - withMaxMessageSize(int) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the maximum message size (in bytes).
- withMessageHandler(SmtpMessageHandler) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the
SmtpMessageHandlerto be applied for the received messages. - withOptions(SmtpServerOptions) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the SMTP server options..
- withPort(int) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the port on which the
SmtpServerwill listen to. - withProtocol(SmtpServerOptions.Protocol) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the protocol to used.
- withSSLContextProvider(SSLContextProvider) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines the
SSLContextProviderto use when negotiating SSL. - withStartTLSRequired(boolean) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines if secure transport layer is required.
- withStartTLSSupport(boolean) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Defines if the
STARTTLSsupport is enabled (false by default).If true, then aSSL context providermust be set. - withUser(String, String) - Method in class ch.astorm.smtp4j.SmtpServerBuilder
-
Adds the given
userto the repository.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form