Module org.mule.oauth.client.api
Enum ClientCredentialsLocation
- java.lang.Object
-
- java.lang.Enum<ClientCredentialsLocation>
-
- org.mule.oauth.client.api.builder.ClientCredentialsLocation
-
- All Implemented Interfaces:
Serializable,Comparable<ClientCredentialsLocation>
public enum ClientCredentialsLocation extends Enum<ClientCredentialsLocation>
Enum to define where to send the client credentials in an OAuth2 Dance.- Since:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASIC_AUTH_HEADERSend credentials in an Basic Authentication headerBODYSend credentials encoded in HTTP BodyQUERY_PARAMSSend credentials as query parameters
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientCredentialsLocationvalueOf(String name)Returns the enum constant of this type with the specified name.static ClientCredentialsLocation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC_AUTH_HEADER
public static final ClientCredentialsLocation BASIC_AUTH_HEADER
Send credentials in an Basic Authentication header
-
BODY
public static final ClientCredentialsLocation BODY
Send credentials encoded in HTTP Body
-
QUERY_PARAMS
public static final ClientCredentialsLocation QUERY_PARAMS
Send credentials as query parameters
-
-
Method Detail
-
values
public static ClientCredentialsLocation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientCredentialsLocation c : ClientCredentialsLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientCredentialsLocation 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 nameNullPointerException- if the argument is null
-
-