Package dev.openfga.autoconfigure
Enum Class OpenFgaProperties.CredentialsMethod
java.lang.Object
java.lang.Enum<OpenFgaProperties.CredentialsMethod>
dev.openfga.autoconfigure.OpenFgaProperties.CredentialsMethod
- All Implemented Interfaces:
Serializable,Comparable<OpenFgaProperties.CredentialsMethod>,Constable
- Enclosing class:
- OpenFgaProperties
public static enum OpenFgaProperties.CredentialsMethod
extends Enum<OpenFgaProperties.CredentialsMethod>
OpenFgaClient credentials methods
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA static API token.OAuth2 client credentials that can be used to acquire an OAuth2 access token.No authentication -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OpenFgaProperties.CredentialsMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No authentication -
API_TOKEN
A static API token. In OAuth2 terms, this indicates an "access token" that will be used to make a request. When used, anapi-tokenmust also be configured. -
CLIENT_CREDENTIALS
OAuth2 client credentials that can be used to acquire an OAuth2 access token. When used, you must also configureOpenFgaProperties.CredentialsConfiguration.
-
-
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
-