Enum Class RestOAuth2ClientAuthMethod
java.lang.Object
java.lang.Enum<RestOAuth2ClientAuthMethod>
com.bonitasoft.processbuilder.enums.RestOAuth2ClientAuthMethod
- All Implemented Interfaces:
Serializable,Comparable<RestOAuth2ClientAuthMethod>,Constable
Defines how OAuth2 client credentials are sent to the token endpoint.
- Since:
- 1.0
- Author:
- Bonitasoft
-
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 Optional<RestOAuth2ClientAuthMethod>Finds a method by its key (case-insensitive).Retrieves all methods as a read-only Map.Retrieves all keys as a read-only List.Gets the description.getKey()Gets the technical key.static booleanChecks if a given string corresponds to a valid method.static RestOAuth2ClientAuthMethodReturns the enum constant of this class with the specified name.static RestOAuth2ClientAuthMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BODY
Client credentials sent in the request body as form parameters. -
HEADER
Client credentials sent as HTTP Basic Auth header.
-
-
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
-
getKey
Gets the technical key.- Returns:
- The key
-
getDescription
Gets the description.- Returns:
- The description
-
isValid
Checks if a given string corresponds to a valid method.- Parameters:
input- The string to validate (case-insensitive)- Returns:
trueif the string is valid
-
fromKey
Finds a method by its key (case-insensitive).- Parameters:
key- The key to search for- Returns:
- Optional containing the matching method, or empty if not found
-
getAllData
Retrieves all methods as a read-only Map.- Returns:
- A map containing all method data (Key -> Description)
-
getAllKeysList
Retrieves all keys as a read-only List.- Returns:
- A list containing all method keys
-