Class SmtpProtocolConstants

java.lang.Object
ch.astorm.smtp4j.protocol.SmtpProtocolConstants

public class SmtpProtocolConstants extends Object
Constants for the SMTP protocol.
  • Field Details

    • CRLF

      public static String CRLF
      Line/command break. See the specification.
    • SP_FINAL

      public static String SP_FINAL
      Command-parameter separator. See the specification.
    • SP_CONTINUE

      public static String SP_CONTINUE
      Command-parameter separator (multiline reply). See the specification.
    • COLON

      public static String COLON
      Colon separator. See the specification.
    • DOT

      public static char DOT
      Data dot-line separator. See the specification.
    • CODE_CONNECT

      public static final int CODE_CONNECT
      Code of the first reply of the SMTP server.
      See Also:
    • CODE_QUIT

      public static final int CODE_QUIT
      Code replied when the QUIT command is received.
      See Also:
    • CODE_AUTHENTICATION_SUCCESS

      public static final int CODE_AUTHENTICATION_SUCCESS
      Code replied when authentication has been successful.
      See Also:
    • CODE_OK

      public static final int CODE_OK
      Code when the command is accepted by the server.
      See Also:
    • CODE_NOT_SUPPORTED

      public static final int CODE_NOT_SUPPORTED
      Code when the command is not supported.
      See Also:
    • CODE_SERVER_CHALLENGE

      public static final int CODE_SERVER_CHALLENGE
      Code when an intermediate challenge is asked by the server during authentication.
      See Also:
    • CODE_INTERMEDIATE_REPLY

      public static final int CODE_INTERMEDIATE_REPLY
      Code when the command is accepted, but in intermediate state (data).
      See Also:
    • CODE_COMMAND_TLS_UNAVAILABLE

      public static final int CODE_COMMAND_TLS_UNAVAILABLE
      Error code when TLS is unavailable.
      See Also:
    • CODE_COMMAND_UNKNOWN

      public static final int CODE_COMMAND_UNKNOWN
      Error code when a command is unknown.
      See Also:
    • CODE_BAD_COMMAND_SEQUENCE

      public static final int CODE_BAD_COMMAND_SEQUENCE
      Error code when a bad sequence of command has been received.
      See Also:
    • CODE_BAD_AUTHENTICATION_SCHEME

      public static final int CODE_BAD_AUTHENTICATION_SCHEME
      Error code when an invalid authentication scheme is used.
      See Also:
    • CODE_ENCRYPTION_NEEDED

      public static final int CODE_ENCRYPTION_NEEDED
      Error code when secure communication must be used.
      See Also:
    • CODE_AUTHENTICATION_REQUIRED

      public static final int CODE_AUTHENTICATION_REQUIRED
      Error code when authentication is required.
      See Also:
    • CODE_AUTHENTICATION_FAILURE

      public static final int CODE_AUTHENTICATION_FAILURE
      Error code when authentication failed.
      See Also:
    • CODE_STORAGE_EXCEEDED

      public static final int CODE_STORAGE_EXCEEDED
      Error code when storage allocation exceeded.
      See Also:
    • CODE_TRANSACTION_FAILED

      public static final int CODE_TRANSACTION_FAILED
      Error code when a transaction has failed.
      See Also:
  • Constructor Details

    • SmtpProtocolConstants

      public SmtpProtocolConstants()