Package ch.astorm.smtp4j.protocol
Class SmtpProtocolConstants
java.lang.Object
ch.astorm.smtp4j.protocol.SmtpProtocolConstants
Constants for the SMTP protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError code when authentication failed.static final intError code when authentication is required.static final intCode replied when authentication has been successful.static final intError code when an invalid authentication scheme is used.static final intError code when a bad sequence of command has been received.static final intError code when TLS is unavailable.static final intError code when a command is unknown.static final intCode of the first reply of the SMTP server.static final intError code when secure communication must be used.static final intCode when the command is accepted, but in intermediate state (data).static final intCode when the command is not supported.static final intCode when the command is accepted by the server.static final intCode replied when theQUITcommand is received.static final intCode when an intermediate challenge is asked by the server during authentication.static final intError code when storage allocation exceeded.static final intError code when a transaction has failed.static StringColon separator.static StringLine/command break.static charData dot-line separator.static StringCommand-parameter separator (multiline reply).static StringCommand-parameter separator. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CRLF
Line/command break. See the specification. -
SP_FINAL
Command-parameter separator. See the specification. -
SP_CONTINUE
Command-parameter separator (multiline reply). See the specification. -
COLON
Colon separator. See the specification. -
DOT
public static char DOTData dot-line separator. See the specification. -
CODE_CONNECT
public static final int CODE_CONNECTCode of the first reply of the SMTP server.- See Also:
-
CODE_QUIT
public static final int CODE_QUITCode replied when theQUITcommand is received.- See Also:
-
CODE_AUTHENTICATION_SUCCESS
public static final int CODE_AUTHENTICATION_SUCCESSCode replied when authentication has been successful.- See Also:
-
CODE_OK
public static final int CODE_OKCode when the command is accepted by the server.- See Also:
-
CODE_NOT_SUPPORTED
public static final int CODE_NOT_SUPPORTEDCode when the command is not supported.- See Also:
-
CODE_SERVER_CHALLENGE
public static final int CODE_SERVER_CHALLENGECode when an intermediate challenge is asked by the server during authentication.- See Also:
-
CODE_INTERMEDIATE_REPLY
public static final int CODE_INTERMEDIATE_REPLYCode when the command is accepted, but in intermediate state (data).- See Also:
-
CODE_COMMAND_TLS_UNAVAILABLE
public static final int CODE_COMMAND_TLS_UNAVAILABLEError code when TLS is unavailable.- See Also:
-
CODE_COMMAND_UNKNOWN
public static final int CODE_COMMAND_UNKNOWNError code when a command is unknown.- See Also:
-
CODE_BAD_COMMAND_SEQUENCE
public static final int CODE_BAD_COMMAND_SEQUENCEError code when a bad sequence of command has been received.- See Also:
-
CODE_BAD_AUTHENTICATION_SCHEME
public static final int CODE_BAD_AUTHENTICATION_SCHEMEError code when an invalid authentication scheme is used.- See Also:
-
CODE_ENCRYPTION_NEEDED
public static final int CODE_ENCRYPTION_NEEDEDError code when secure communication must be used.- See Also:
-
CODE_AUTHENTICATION_REQUIRED
public static final int CODE_AUTHENTICATION_REQUIREDError code when authentication is required.- See Also:
-
CODE_AUTHENTICATION_FAILURE
public static final int CODE_AUTHENTICATION_FAILUREError code when authentication failed.- See Also:
-
CODE_STORAGE_EXCEEDED
public static final int CODE_STORAGE_EXCEEDEDError code when storage allocation exceeded.- See Also:
-
CODE_TRANSACTION_FAILED
public static final int CODE_TRANSACTION_FAILEDError code when a transaction has failed.- See Also:
-
-
Constructor Details
-
SmtpProtocolConstants
public SmtpProtocolConstants()
-