Enum Class HttpSchemeType
- All Implemented Interfaces:
Serializable,Comparable<HttpSchemeType>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpSchemeTypeGets the HttpSchemeType from a string value.getValue()Gets the string value of the scheme type.toString()static HttpSchemeTypeReturns the enum constant of this class with the specified name.static HttpSchemeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASIC
Basic authentication scheme as defined in RFC7617. -
BEARER
Bearer token authentication scheme as defined in RFC6750. -
DIGEST
Digest authentication scheme as defined in RFC7616.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Gets the string value of the scheme type.- Returns:
- The string value
-
fromValue
Gets the HttpSchemeType from a string value.- Parameters:
value- The string value to convert- Returns:
- The corresponding HttpSchemeType, or null if not found
-
toString
- Overrides:
toStringin classEnum<HttpSchemeType>
-