Enum Class McpServerAuthTypeEnum

java.lang.Object
java.lang.Enum<McpServerAuthTypeEnum>
com.bytedesk.ai.springai.mcp_server.McpServerAuthTypeEnum
All Implemented Interfaces:
Serializable, Comparable<McpServerAuthTypeEnum>, Constable

public enum McpServerAuthTypeEnum extends Enum<McpServerAuthTypeEnum>
MCP Server authentication type enumeration Represents different authentication methods for MCP servers
  • Enum Constant Details

  • Field Details

    • displayName

      private final String displayName
    • description

      private final String description
  • Constructor Details

    • McpServerAuthTypeEnum

      private McpServerAuthTypeEnum(String displayName, String description)
  • Method Details

    • values

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

      public static McpServerAuthTypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
    • getDescription

      public String getDescription()
    • fromString

      public static McpServerAuthTypeEnum fromString(String authType)
      Get enum from string value (case insensitive)
    • requiresToken

      public boolean requiresToken()
      Check if authentication requires a token
    • requiresCredentials

      public boolean requiresCredentials()
      Check if authentication requires username/password
    • requiresCertificate

      public boolean requiresCertificate()
      Check if authentication requires certificates
    • requiresCustomHeaders

      public boolean requiresCustomHeaders()
      Check if authentication requires custom headers
    • isSecure

      public boolean isSecure()
      Check if authentication is secure
    • getTypicalHeaderName

      public String getTypicalHeaderName()
      Get the typical header name for this authentication type
    • getSchemePrefix

      public String getSchemePrefix()
      Get the authorization scheme prefix