Enum Class HttpSchemeType

java.lang.Object
java.lang.Enum<HttpSchemeType>
com.mulesoft.connectors.a2a.api.model.card.security.HttpSchemeType
All Implemented Interfaces:
Serializable, Comparable<HttpSchemeType>, Constable

public enum HttpSchemeType extends Enum<HttpSchemeType>
Enumeration of HTTP Authorization scheme types.

These values correspond to the IANA Authentication Scheme registry and RFC7235. The values are case-insensitive as defined in RFC7235.

Since:
1.0.0
  • Enum Constant Details

    • BASIC

      public static final HttpSchemeType BASIC
      Basic authentication scheme as defined in RFC7617.
    • BEARER

      public static final HttpSchemeType BEARER
      Bearer token authentication scheme as defined in RFC6750.
    • DIGEST

      public static final HttpSchemeType DIGEST
      Digest authentication scheme as defined in RFC7616.
  • Method Details

    • values

      public static HttpSchemeType[] 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 HttpSchemeType 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
    • getValue

      public String getValue()
      Gets the string value of the scheme type.
      Returns:
      The string value
    • fromValue

      public static HttpSchemeType fromValue(String value)
      Gets the HttpSchemeType from a string value.
      Parameters:
      value - The string value to convert
      Returns:
      The corresponding HttpSchemeType, or null if not found
    • toString

      public String toString()
      Overrides:
      toString in class Enum<HttpSchemeType>