Package com.databricks.sdk.core.oauth
Enum AuthParameterPosition
- java.lang.Object
-
- java.lang.Enum<AuthParameterPosition>
-
- com.databricks.sdk.core.oauth.AuthParameterPosition
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthParameterPosition>
public enum AuthParameterPosition extends Enum<AuthParameterPosition>
Options for where authentication parameters can be provided in a request.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthParameterPosition
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthParameterPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADER
public static final AuthParameterPosition HEADER
The parameter should be passed as part of the Authorization header.
-
BODY
public static final AuthParameterPosition BODY
The parameter should be passed as a form field.
-
-
Method Detail
-
values
public static AuthParameterPosition[] 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 (AuthParameterPosition c : AuthParameterPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthParameterPosition 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
-
-