Enum WelcomeBannerPhase

java.lang.Object
java.lang.Enum<WelcomeBannerPhase>
org.apache.sshd.server.auth.WelcomeBannerPhase
All Implemented Interfaces:
Serializable, Comparable<WelcomeBannerPhase>, java.lang.constant.Constable

public enum WelcomeBannerPhase extends Enum<WelcomeBannerPhase>
Used to indicate at which authentication phase to send the welcome banner (if any configured)
Author:
Apache MINA SSHD Project
See Also:
  • Enum Constant Details

    • IMMEDIATE

      public static final WelcomeBannerPhase IMMEDIATE
      Immediately after receiving "ssh-userauth" request
    • FIRST_REQUEST

      public static final WelcomeBannerPhase FIRST_REQUEST
      On first SSH_MSG_USERAUTH_REQUEST
    • FIRST_AUTHCMD

      public static final WelcomeBannerPhase FIRST_AUTHCMD
      On first SSH_MSG_USERAUTH_XXX extension command
    • FIRST_FAILURE

      public static final WelcomeBannerPhase FIRST_FAILURE
      On first SSH_MSG_USERAUTH_FAILURE
    • POST_SUCCESS

      public static final WelcomeBannerPhase POST_SUCCESS
      After user successfully authenticates
    • NEVER

      public static final WelcomeBannerPhase NEVER
      Do not send a welcome banner even if one is configured. Note: this option is useful when a global welcome banner has been configured but we want to disable it for a specific session.
  • Field Details

  • Method Details

    • values

      public static WelcomeBannerPhase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static WelcomeBannerPhase valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null